Displaying 3 results from an estimated 3 matches for "bytes_per_second".
2007 Nov 09
1
Patch for progressmeter.c
...* transfer position as of last refresh */
-static volatile off_t *counter; /* progress counter */
+static off_t last_pos;
+static off_t max_delta_pos = 0;
+static volatile off_t *counter; /* progress counter */
static long stalled; /* how long we have been stalled */
static int bytes_per_second; /* current speed in bytes per second */
static int win_size; /* terminal window size */
@@ -128,11 +130,16 @@ refresh_progress_meter(void)
int hours, minutes, seconds;
int i, len;
int file_len;
+ off_t delta_pos;
transferred = *counter - cur...
2009 Oct 25
0
alternate output for progressmeter
...? ?if (len >= file_len + 1)
@@ -195,7 +198,7 @@
? ? ? ? ? ? ? ?stalled = 0;
? ? ? ?if (stalled >= STALL_TIME)
- ? ? ? ? ? ? ? strlcat(buf, "- stalled -", win_size);
+ ? ? ? ? ? ? ? strlcat(buf, (progresstype)?"-stalled-":"- stalled -",
win_size);
? ? ? ?else if (bytes_per_second == 0 && bytes_left)
? ? ? ? ? ? ? ?strlcat(buf, " ?--:-- ETA", win_size);
? ? ? ?else {
@@ -219,10 +222,14 @@
? ? ? ? ? ? ? ?if (bytes_left > 0)
? ? ? ? ? ? ? ? ? ? ? ?strlcat(buf, " ETA", win_size);
? ? ? ? ? ? ? ?else
- ? ? ? ? ? ? ? ? ? ? ? strlcat(buf, " ? ?&...
2016 Jan 19
6
FWD: [patch] scp + UTF-8
...+ 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_meter(void)
stalled = 0;
if (stalled >= STALL_TIME)
- strlcat(buf, "- stalled -", win_size);
+ strlcat(buf, "-...