diff options
author | Roland McGrath <roland@gnu.org> | 1994-11-09 05:20:05 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-11-09 05:20:05 +0000 |
commit | 59d2858a12f012af998e94a30cd7024e30cb327c (patch) | |
tree | 497717dac0292f94837a4f37ec22beafe5cc88a6 /utils | |
parent | 8f74f19a1b103378cae78876ed47253b8e2ea56f (diff) |
(time_str): Use %.2d instead of %2d to get 0 pads.
Diffstat (limited to 'utils')
-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 42185e58..601e8869 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:%.2d.%.2d", t->seconds / 60, /* minutes */ t->seconds % 60, /* seconds */ centiseconds); |