[openssh-commits] [openssh] 01/07: upstream: switch from int to long long for bandwidth calculations;
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Mar 30 18:51:32 AEDT 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit b62a6cfbed3481dac8bff35fab22cf489bb0b77f
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Sun Mar 29 01:08:13 2026 +0000
upstream: switch from int to long long for bandwidth calculations;
fixes rate display when rate > 2GB/s; based on patch from Cyril Servant
feedback/ok deraadt@
OpenBSD-Commit-ID: 071eb48c4cba598d70ea3854bef7c49ddfabf8d3
---
progressmeter.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/progressmeter.c b/progressmeter.c
index 2c169768f..22f510a79 100644
--- a/progressmeter.c
+++ b/progressmeter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: progressmeter.c,v 1.56 2025/06/11 13:27:11 dtucker Exp $ */
+/* $OpenBSD: progressmeter.c,v 1.57 2026/03/29 01:08:13 djm Exp $ */
/*
* Copyright (c) 2003 Nils Nordman. All rights reserved.
*
@@ -67,7 +67,7 @@ static off_t end_pos; /* ending position of transfer */
static off_t cur_pos; /* transfer position as of last refresh */
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 long long bytes_per_second; /* current speed in bytes per second */
static int win_size; /* terminal window size */
static volatile sig_atomic_t win_resized; /* for window resizing */
static volatile sig_atomic_t alarm_fired;
@@ -128,7 +128,7 @@ refresh_progress_meter(int force_update)
double elapsed, now;
int percent;
off_t bytes_left;
- int cur_speed;
+ long long cur_speed;
int hours, minutes, seconds;
int file_len, cols;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list