=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rup/rup.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/rup/rup.c 1999/08/16 23:48:57 1.11 --- src/usr.bin/rup/rup.c 2001/06/18 22:18:02 1.12 *************** *** 1,4 **** ! /* $OpenBSD: rup.c,v 1.11 1999/08/16 23:48:57 aaron Exp $ */ /*- * Copyright (c) 1993, John Brezak --- 1,4 ---- ! /* $OpenBSD: rup.c,v 1.12 2001/06/18 22:18:02 millert Exp $ */ /*- * Copyright (c) 1993, John Brezak *************** *** 34,40 **** */ #ifndef lint ! static char rcsid[] = "$OpenBSD: rup.c,v 1.11 1999/08/16 23:48:57 aaron Exp $"; #endif /* not lint */ #include --- 34,40 ---- */ #ifndef lint ! static char rcsid[] = "$OpenBSD: rup.c,v 1.12 2001/06/18 22:18:02 millert Exp $"; #endif /* not lint */ #include *************** *** 206,212 **** host_stat->curtime.tv_sec -= host_stat->boottime.tv_sec; ! ups=host_stat->curtime.tv_sec; upd=ups/(3600*24); ups-=upd*3600*24; uph=ups/3600; --- 206,213 ---- host_stat->curtime.tv_sec -= host_stat->boottime.tv_sec; ! if (host_stat->curtime.tv_sec > 0) ! ups=host_stat->curtime.tv_sec; upd=ups/(3600*24); ups-=upd*3600*24; uph=ups/3600;