From 59d2858a12f012af998e94a30cd7024e30cb327c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 9 Nov 1994 05:20:05 +0000 Subject: (time_str): Use %.2d instead of %2d to get 0 pads. --- utils/old-ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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); -- cgit v1.2.3