Displaying 3 results from an estimated 3 matches for "format_rate".
Did you mean:
format_date
2007 Nov 09
1
Patch for progressmeter.c
...strlen(buf), win_size - strlen(buf-8),
" %3d%% ", percent);
/* amount transferred */
@@ -188,6 +196,11 @@ refresh_progress_meter(void)
(off_t)bytes_per_second);
strlcat(buf, "/s ", win_size);
+ /* instantaneous rate */
+ format_rate(buf + strlen(buf), win_size - strlen(buf),
+ delta_pos);
+ strlcat(buf, "/s ", win_size);
+
/* ETA */
if (!transferred)
stalled += elapsed;
@@ -224,6 +237,7 @@ refresh_progress_meter(void)
atomicio(vwrite, STDOUT_FILENO, buf, wi...
2005 Nov 21
1
[PATCH] 64 bit clean compilation patches
...ply the required
format specifications if they are not provided by the OS. These patches
remove the following warnings found during a 64-bit compile:
hostfile.c: In function `extract_salt':
hostfile.c:92: warning: unsigned int format, different type arg (arg 2)
progressmeter.c: In function `format_rate':
progressmeter.c:91: warning: long long int format, off_t arg (arg 4)
progressmeter.c:91: warning: long long int format, off_t arg (arg 5)
progressmeter.c:91: warning: long long int format, off_t arg (arg 4)
progressmeter.c:91: warning: long long int format, off_t arg (arg 5)
progressmeter.c:...
2016 Jan 19
6
FWD: [patch] scp + UTF-8
...%3d%% ", percent);
/* amount transferred */
- format_size(buf + strlen(buf), win_size - strlen(buf),
+ format_size(buf + strlen(buf), sizeof(buf) - strlen(buf),
cur_pos);
- strlcat(buf, " ", win_size);
+ strlcat(buf, " ", sizeof(buf));
/* bandwidth usage */
- format_rate(buf + strlen(buf), win_size - strlen(buf),
+ format_rate(buf + strlen(buf), sizeof(buf) - strlen(buf),
(off_t)bytes_per_second);
- strlcat(buf, "/s ", win_size);
+ strlcat(buf, "/s ", sizeof(buf));
/* ETA */
if (!transferred)
@@ -194,9 +215,9 @@ refresh_progress_mete...