[pacman-dev] [PATCH] Fixes bug FS 59201
Sever Oraz
severoraz at gmail.com
Sun Feb 10 12:11:42 UTC 2019
Signed-off-by: Sever Oraz <severoraz at gmail.com>
---
src/pacman/callback.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index ee75297c..c0f5ade1 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -837,16 +837,16 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total)
xfered_human = humanize_size(xfered, '\0', -1, &xfered_label);
printf(" %ls%-*s ", wcfname, padwid, "");
- /* We will show 1.62M/s, 11.6M/s, but 116K/s and 1116K/s */
+ /* We will show 1.62 MiB/s, 11.6 MiB/s, but 116 KiB/s and 1116 KiB/s */
if(rate_human < 9.995) {
- printf("%6.1f %3s %4.2f%c/s ",
- xfered_human, xfered_label, rate_human, rate_label[0]);
+ printf("%6.1f %3s %4.2f %3s/s ",
+ xfered_human, xfered_label, rate_human, rate_label);
} else if(rate_human < 99.95) {
- printf("%6.1f %3s %4.1f%c/s ",
- xfered_human, xfered_label, rate_human, rate_label[0]);
+ printf("%6.1f %3s %4.1f %3s/s ",
+ xfered_human, xfered_label, rate_human, rate_label);
} else {
- printf("%6.1f %3s %4.f%c/s ",
- xfered_human, xfered_label, rate_human, rate_label[0]);
+ printf("%6.1f %3s %4.f %3s/s ",
+ xfered_human, xfered_label, rate_human, rate_label);
}
if(eta_h == 0) {
printf("%02u:%02u", eta_m, eta_s);
--
2.20.1
More information about the pacman-dev
mailing list