From 039309869bacc98c71330e4f3dcfc66d03180dc6 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Wed, 27 Oct 1999 02:14:39 +0000 Subject: Calculation fix in progressmeter() for ETA > 1hr; pasto on my part. --- usr.bin/ssh/scp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index e39a96bd4b5..9b0dd9587bb 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -42,11 +42,11 @@ and ssh has the necessary privileges.) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scp.c,v 1.13 1999/10/08 01:25:20 aaron Exp $ + * $Id: scp.c,v 1.14 1999/10/27 02:14:38 aaron Exp $ */ #include "includes.h" -RCSID("$Id: scp.c,v 1.13 1999/10/08 01:25:20 aaron Exp $"); +RCSID("$Id: scp.c,v 1.14 1999/10/27 02:14:38 aaron Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -976,7 +976,7 @@ run_err(const char *fmt, ...) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scp.c,v 1.13 1999/10/08 01:25:20 aaron Exp $ + * $Id: scp.c,v 1.14 1999/10/27 02:14:38 aaron Exp $ */ char * @@ -1183,7 +1183,7 @@ progressmeter(int flag) " - stalled -"); } else { remaining = (int)(totalbytes / (statbytes / elapsed) - elapsed); - i = elapsed / 3600; + i = remaining / 3600; if (i) snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%2d:", i); -- cgit v1.2.3