mirror of
https://github.com/upa/mscp.git
synced 2026-05-21 21:07:31 +08:00
main: add a white space to the elapsed time output
It adjusts the position of XX:XX in elapsed timeou output.
This commit is contained in:
@@ -431,7 +431,7 @@ char *calculate_eta(size_t remain, size_t diff, struct timeval *b, struct timeva
|
|||||||
if (diff == 0)
|
if (diff == 0)
|
||||||
snprintf(buf, sizeof(buf), "--:-- ETA");
|
snprintf(buf, sizeof(buf), "--:-- ETA");
|
||||||
else if (final) {
|
else if (final) {
|
||||||
snprintf(buf, sizeof(buf), "%02d:%02d ",
|
snprintf(buf, sizeof(buf), "%02d:%02d ",
|
||||||
(int)(floor(elapsed / 60)), (int)round(elapsed) % 60);
|
(int)(floor(elapsed / 60)), (int)round(elapsed) % 60);
|
||||||
} else {
|
} else {
|
||||||
eta = remain / (diff / elapsed);
|
eta = remain / (diff / elapsed);
|
||||||
|
|||||||
Reference in New Issue
Block a user