Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Apr 1998 13:20:01 -0800 (PST)
From:      Max Euston <meuston@jmrodgers.com>
To:        freebsd-bugs
Subject:   RE: bin/6193: rup time output wrong at noon
Message-ID:  <199804012120.NAA15336@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/6193; it has been noted by GNATS.

From: Max Euston <meuston@jmrodgers.com>
To: "'nsayer@quack.kfu.com'" <nsayer@quack.kfu.com>
Cc: "FreeBSD-gnats-submit@freebsd.org" <FreeBSD-gnats-submit@freebsd.org>
Subject: RE: bin/6193: rup time output wrong at noon
Date: Wed, 1 Apr 1998 16:14:22 -0500

 Trivial fix: (should probably be displayed in the user's local time format, but... this can close the PR).
 
 diff -u /usr/src/usr.bin/rup/rup.c ./rup.c
 --- /usr/src/usr.bin/rup/rup.c  Mon Sep 15 06:19:53 1997
 +++ ./rup.c     Wed Apr  1 15:57:37 1998
 @@ -137,7 +137,7 @@
                         hours_buf[0] = '\0';
 
         printf(" %2d:%02d%cm  up %9.9s%9.9s load average: %.2f %.2f %.2f\n",
 -               host_time.tm_hour % 12,
 +               (host_time.tm_hour % 12) ? host_time.tm_hour % 12 : 12,
                 host_time.tm_min,
                 (host_time.tm_hour >= 12) ? 'p' : 'a',
                 days_buf,
 
 
 -----
 Max Euston <meuston@jmrodgers.com>
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804012120.NAA15336>