diff options
author | Ryo Nakamura <upa@haeena.net> | 2023-04-05 19:07:10 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2023-04-05 19:07:10 +0900 |
commit | 1d3b3a2261153126832bab4276677cab6e262ed2 (patch) | |
tree | b69782e635295d4990fb23a54b7c2ccca218a9f1 /src/main.c | |
parent | 575c920b6ef0b7760e05498ccb4af42881dcc672 (diff) |
main: add a white space to the elapsed time output
It adjusts the position of XX:XX in elapsed timeou output.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -431,7 +431,7 @@ char *calculate_eta(size_t remain, size_t diff, struct timeval *b, struct timeva if (diff == 0) snprintf(buf, sizeof(buf), "--:-- ETA"); else if (final) { - snprintf(buf, sizeof(buf), "%02d:%02d ", + snprintf(buf, sizeof(buf), "%02d:%02d ", (int)(floor(elapsed / 60)), (int)round(elapsed) % 60); } else { eta = remain / (diff / elapsed); |