summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-10-27 02:14:39 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-10-27 02:14:39 +0000
commit039309869bacc98c71330e4f3dcfc66d03180dc6 (patch)
treec99423d61a8aecd8653e74cea870f69c8c1b8825 /usr.bin
parenta8bb4a8cf25599c99361469e01f1b10631a51761 (diff)
Calculation fix in progressmeter() for ETA > 1hr; pasto on my part.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/scp.c8
1 files changed, 4 insertions, 4 deletions
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);