]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbclient: report kilobytes per second as kB/s, not kb/s
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 20 Feb 2025 04:20:16 +0000 (17:20 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 27 Feb 2025 00:02:38 +0000 (00:02 +0000)
https://bugzilla.samba.org/show_bug.cgi?id=11023

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
source3/client/client.c
source4/client/client.c

index e2dd700314c742dcd3eeb168d110fe1c43b87e23..d1ccc8cb54e5bc01221d10e8945c42d0aa82410d 100644 (file)
@@ -1959,7 +1959,7 @@ static int do_put(const char *rname, const char *lname, bool reput)
                put_total_time_ms += this_time;
                put_total_size += state.nread;
 
-               DEBUG(1,("(%3.1f kb/s) (average %3.1f kb/s)\n",
+               DEBUG(1,("(%3.1f kB/s) (average %3.1f kB/s)\n",
                         state.nread / (1.024*this_time + 1.0e-4),
                         put_total_size / (1.024*put_total_time_ms)));
        }
@@ -4379,7 +4379,7 @@ static int scopy_status(off_t written, void *priv)
        clock_gettime_mono(&tp_end);
        scopy_total_time_ms = nsec_time_diff(&tp_end,&st->tp_start)/1000000;
 
-       DEBUG(5,("Copied %jd bytes at an average %3.1f kb/s\n",
+       DEBUG(5,("Copied %jd bytes at an average %3.1f kB/s\n",
                 (intmax_t)written, written / (1.024*scopy_total_time_ms)));
 
        return true;
index 33733efa39001260a54711b6dc6e9fcaab360546..8debb61c6ff8bd2b541cd221bb99ecb707736b8d 100644 (file)
@@ -811,7 +811,7 @@ static int do_get(struct smbclient_context *ctx, char *rname, const char *p_lnam
                get_total_time_ms += this_time;
                get_total_size += nread;
 
-               DEBUG(2,("(%3.1f kb/s) (average %3.1f kb/s)\n",
+               DEBUG(2,("(%3.1f kB/s) (average %3.1f kB/s)\n",
                         nread / (1.024*this_time + 1.0e-4),
                         get_total_size / (1.024*get_total_time_ms)));
        }
@@ -1227,7 +1227,7 @@ static int do_put(struct smbclient_context *ctx, char *rname, char *lname, bool
                put_total_time_ms += this_time;
                put_total_size += nread;
 
-               DEBUG(1,("(%3.1f kb/s) (average %3.1f kb/s)\n",
+               DEBUG(1,("(%3.1f kB/s) (average %3.1f kB/s)\n",
                         nread / (1.024*this_time + 1.0e-4),
                         put_total_size / (1.024*put_total_time_ms)));
        }