summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-11-09 05:20:05 +0000
committerRoland McGrath <roland@gnu.org>1994-11-09 05:20:05 +0000
commit59d2858a12f012af998e94a30cd7024e30cb327c (patch)
tree497717dac0292f94837a4f37ec22beafe5cc88a6
parent8f74f19a1b103378cae78876ed47253b8e2ea56f (diff)
(time_str): Use %.2d instead of %2d to get 0 pads.
-rw-r--r--utils/old-ps.c2
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);