diff options
author | epoch <epoch@hack.thebackupbox.net> | 2021-03-13 19:02:20 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2021-03-13 19:02:20 +0000 |
commit | 0bd04927337c4c7064b9a881099358d024bd280c (patch) | |
tree | c8f663768e2e1da0bfd207551cf7cb5a8a2233d4 | |
parent | 54443ed19eeeb63f787a6fd709cd99c423e8e854 (diff) | |
download | misc-0bd04927337c4c7064b9a881099358d024bd280c.tar.gz misc-0bd04927337c4c7064b9a881099358d024bd280c.zip |
forgot to 0-pad the seconds in short-mode of elapsedtime
-rw-r--r-- | src/bin/elapsedtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/elapsedtime.c b/src/bin/elapsedtime.c index 42c2b5e..6f30429 100644 --- a/src/bin/elapsedtime.c +++ b/src/bin/elapsedtime.c @@ -17,7 +17,7 @@ int main(int argc,char *argv[]) { char *f=strchr(*argv,'.'); ll=atoll(*argv); if(s) { - printf("%lld:%lld%s\n",ll / 60 % 60,ll % 60,f?f:""); + printf("%lld:%02lld%s\n",ll / 60 % 60,ll % 60,f?f:""); return 0; } if(ll / 31557600 ) { if(c) printf(", ");c=1;printf("%lld year%s", ll / 31557600, ll / 31557600 == 1 ? "" : "s"); } |