[srvx-commits] CVS: services/src opserv.c,1.301,1.302
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2003-01-02 23:12:00
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27319/src
Modified Files:
opserv.c
Log Message:
use current system time (instead of network time) to calculate uptime
Index: opserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/opserv.c,v
retrieving revision 1.301
retrieving revision 1.302
diff -C2 -r1.301 -r1.302
*** opserv.c 2 Jan 2003 01:22:22 -0000 1.301
--- opserv.c 2 Jan 2003 23:11:56 -0000 1.302
***************
*** 1,4 ****
/* opserv.c - IRC Operator assistant service
! * Copyright 2000-2002 srvx Development Team
*
* This program is free software; you can redistribute it and/or modify
--- 1,4 ----
/* opserv.c - IRC Operator assistant service
! * Copyright 2000-2003 srvx Development Team
*
* This program is free software; you can redistribute it and/or modify
***************
*** 1506,1510 ****
(void)argv;
! intervalString(uptime, now-boot_time);
times(&buf);
reply(OSMSG_UPTIME_STATS,
--- 1506,1510 ----
(void)argv;
! intervalString(uptime, time(NULL)-boot_time);
times(&buf);
reply(OSMSG_UPTIME_STATS,
|