Displaying 3 results from an estimated 3 matches for "stop_progress_meter".
2007 Nov 09
1
Patch for progressmeter.c
...+
/* ETA */
if (!transferred)
stalled += elapsed;
@@ -224,6 +237,7 @@ refresh_progress_meter(void)
atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
last_update = now;
+ last_pos = cur_pos;
}
/*ARGSUSED*/
@@ -270,6 +284,7 @@ void
stop_progress_meter(void)
{
alarm(0);
+ char lbuf[10];
if (!can_output())
return;
@@ -277,7 +292,9 @@ stop_progress_meter(void)
/* Ensure we complete the progress */
if (cur_pos != end_pos)
refresh_progress_meter();
-
+
+ format_rate(...
2009 Oct 25
0
alternate output for progressmeter
...ogressmeter.h ? ? 2006-03-26 05:30:02.000000000 +0200
+++ progressmeter_new.h 2009-10-24 20:35:35.168288539 +0200
@@ -23,5 +23,7 @@
?* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
?*/
+extern int ? ? progresstype;
+
?void ? start_progress_meter(char *, off_t, off_t *);
?void ? stop_progress_meter(void);
--- progressmeter.c ? ? 2006-08-05 04:39:40.000000000 +0200
+++ progressmeter_new.c 2009-10-24 20:32:45.455788330 +0200
@@ -74,12 +74,15 @@
?static int win_size; ? ? ? ? ? /* terminal window size */
?static volatile sig_atomic_t win_resized; /* for window resizing */
+int ? ?progresstype...
2010 Apr 25
6
[Bug 1761] New: sftp exits on 2nd terminal resize after a transfer
...Severity: normal
Priority: P2
Component: sftp
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: ejsheldrake at googlemail.com
Created attachment 1844
--> https://bugzilla.mindrot.org/attachment.cgi?id=1844
remove progress meter signal handlers in stop_progress_meter
sftp, when built with libedit (editline) support enabled, may exit
unexpectedly if you resize the terminal window after a transfer.
This is with libedit 20100424-3.0 (which fixed the resize problem in
libedit 20090923), but this appears to be a separate bug in sftp.
sftp handles any number of te...