bin/147629: /usrt/bin/rup problem 365 days period
Kaoru Kusachi
tika at lsi-j.co.jp
Mon Jun 7 02:40:04 UTC 2010
>Number: 147629
>Category: bin
>Synopsis: /usrt/bin/rup problem 365 days period
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jun 07 02:40:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Kaoru Kusachi
>Release: 8.0-RELEASE
>Organization:
LSI Japan Co.,LTD.
>Environment:
FreeBSD tc500l 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #1: Fri May 28 08:30:19 JST
2010 root at tc500l:/usr/src/sys/i386/compile/GENERIC i386
>Description:
For the wrong view of the flag / usr / bin / rup disappear every day 365 days run on the remote machine's display.
>How-To-Repeat:
tika at tc500l$ rup mars
mars 11:31am up 21:26, load average: 0.03 0.03 0.03
on remote machine
tika at mars$ uptime
11:32am up 365 day(s), 21:27, 1 user, load average: 0.04, 0.03, 0.03
>Fix:
*** /usr/.zfs/snapshot/20100607/src/usr.bin/rup/rup.c Thu Oct 29 12:06:01 2009
--- rup.c Mon Jun 7 11:15:06 2010
***************
*** 141,152 ****
}
#define updays (host_stat->curtime.tv_sec / 86400)
! if (host_uptime.tm_yday != 0)
sprintf(days_buf, "%3d day%s, ", updays,
(updays > 1) ? "s" : "");
! else
days_buf[0] = '¥0';
!
if (host_uptime.tm_hour != 0)
sprintf(hours_buf, "%2d:%02d, ",
host_uptime.tm_hour, host_uptime.tm_min);
--- 141,152 ----
}
#define updays (host_stat->curtime.tv_sec / 86400)
! if (updays != 0) {
sprintf(days_buf, "%3d day%s, ", updays,
(updays > 1) ? "s" : "");
! } else {
days_buf[0] = '¥0';
! }
if (host_uptime.tm_hour != 0)
sprintf(hours_buf, "%2d:%02d, ",
host_uptime.tm_hour, host_uptime.tm_min);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list