summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2005-08-10 19:31:56 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2005-08-10 19:31:56 +0000
commit025319aedfec7fa75b5c243fd1f24fd747984843 (patch)
tree2cfa9dc3a8c9465659605b2fd1d34dc7733b29b9
parenta6190b1a5e6bb66f56ce090de8e3fac29fdb9a79 (diff)
print session time in fixed width
ok henning, deraadt
-rw-r--r--sbin/ifconfig/ifconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index b308e470c28..217c58f3e04 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.147 2005/06/24 15:26:33 jolan Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.148 2005/08/10 19:31:55 sturm Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -3164,7 +3164,7 @@ pppoe_status(void)
}
printf(" time: ");
if (day != 0) printf("%ldd ", day);
- printf("%ld:%ld:%ld", hour, min, sec);
+ printf("%02ld:%02ld:%02ld", hour, min, sec);
}
putchar('\n');
}