diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-11-09 09:43:50 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-11-09 09:43:50 +0000 |
commit | 258ed903a5b436d0dc1ac3b057bfa5d9ab3778ed (patch) | |
tree | 3df41335ea02fdf7bfb170647d52e9bcba4fab20 | |
parent | 42f7ee18900aa6f7a825182c669a4d30b6a29d63 (diff) |
(time_str): Specify format for decimals correctly.
-rw-r--r-- | utils/old-ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/old-ps.c b/utils/old-ps.c index 601e8869..47dd0e07 100644 --- a/utils/old-ps.c +++ b/utils/old-ps.c @@ -60,7 +60,7 @@ time_str (time_value_t *t) } centiseconds = t->microseconds / (1000000 / 100); - sprintf (ret, "%d:%.2d.%.2d", + sprintf (ret, "%d:%02d.%02d", t->seconds / 60, /* minutes */ t->seconds % 60, /* seconds */ centiseconds); |