mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Small formatting change to interval() to align columns so that:
toronto up 5+18:58, 0 users, load 0.00, 0.00, 0.00 zeus up 109+13:53, 0 users, load 0.55, 0.28, 0.15 looks like: toronto up 5+18:58, 0 users, load 0.00, 0.00, 0.00 zeus up 109+13:53, 0 users, load 0.55, 0.28, 0.15
This commit is contained in:
parent
529016f9e7
commit
26dce0e6e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24433
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* $Id: ruptime.c,v 1.9 1997/02/22 19:56:50 peter Exp $ */
|
||||
/* $Id: ruptime.c,v 1.10 1997/03/29 04:32:02 imp Exp $ */
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
@ -211,10 +211,10 @@ interval(tval, updown)
|
||||
hours %= 24;
|
||||
if (days)
|
||||
(void)snprintf(resbuf, sizeof(resbuf),
|
||||
"%s %2d+%02d:%02d", updown, days, hours, minutes);
|
||||
"%s %3d+%02d:%02d", updown, days, hours, minutes);
|
||||
else
|
||||
(void)snprintf(resbuf, sizeof(resbuf),
|
||||
"%s %2d:%02d", updown, hours, minutes);
|
||||
"%s %2d:%02d", updown, hours, minutes);
|
||||
return (resbuf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user