summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-13 13:22:51 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-13 13:22:51 +0800
commit8d2eccd564b1a85bbc26153a3011a78797d2ae12 (patch)
tree4a0985a384975743b0ec895df1ed491fc1624107 /mbbsd
parent6a428fb60d8ec6092d428b2e0f869a31f4890dc7 (diff)
downloadpttbbs-8d2eccd564b1a85bbc26153a3011a78797d2ae12.tar
pttbbs-8d2eccd564b1a85bbc26153a3011a78797d2ae12.tar.gz
pttbbs-8d2eccd564b1a85bbc26153a3011a78797d2ae12.tar.bz2
pttbbs-8d2eccd564b1a85bbc26153a3011a78797d2ae12.tar.lz
pttbbs-8d2eccd564b1a85bbc26153a3011a78797d2ae12.tar.xz
pttbbs-8d2eccd564b1a85bbc26153a3011a78797d2ae12.tar.zst
pttbbs-8d2eccd564b1a85bbc26153a3011a78797d2ae12.zip
����
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@164 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index a2d1c98a..9d7162fc 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.23 2002/05/13 03:20:04 ptt Exp $ */
+/* $Id: cache.c,v 1.24 2002/05/13 05:22:51 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -377,6 +377,7 @@ static int cmputmpuid(const void *i, const void *j){
void sort_utmp()
{
int count, i, ns;
+ time_t now= time(0);
userinfo_t *uentp;
if(now-utmpshm->uptime<60 && (now==utmpshm->uptime || utmpshm->busystate))