summaryrefslogtreecommitdiffstats
path: root/mbbsd/uptime
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-07 23:13:44 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-07 23:13:44 +0800
commitae31e19f92e717919ac8e3db9039eb38d2b89aae (patch)
treec70164d6a1852344f44b04a653ae2815043512af /mbbsd/uptime
downloadpttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.gz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.bz2
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.lz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.xz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.zst
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.zip
Initial revision
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/uptime')
-rw-r--r--mbbsd/uptime23
1 files changed, 23 insertions, 0 deletions
diff --git a/mbbsd/uptime b/mbbsd/uptime
new file mode 100644
index 00000000..4f8281fb
--- /dev/null
+++ b/mbbsd/uptime
@@ -0,0 +1,23 @@
+cache.c: if(fcache->busystate)
+cache.c: fcache->busystate = 1;
+cache.c: bzero(fcache->domain, sizeof fcache->domain);
+cache.c: fcache->top=0;
+cache.c: sscanf(buf,"%s",fcache->domain[fcache->top]);
+cache.c: po = buf + strlen(fcache->domain[fcache->top]);
+cache.c: strncpy(fcache->replace[fcache->top],po,49);
+cache.c: fcache->replace[fcache->top]
+cache.c: [strlen(fcache->replace[fcache->top])-1] = 0;
+cache.c: (fcache->top)++;
+cache.c: if(fcache->top == MAX_FROM)
+cache.c: fcache->max_user=0;
+cache.c: fcache->uptime = fcache->touchtime;
+cache.c: fcache->busystate = 0;
+cache.c: if(fcache->touchtime == 0)
+cache.c: fcache->touchtime = 1;
+cache.c: while(fcache->uptime < fcache->touchtime)
+mbbsd.c: for (j = 0; j < fcache->top; j++){
+mbbsd.c: char *token = strtok (fcache->domain[j], "&");
+mbbsd.c: if ((a = utmpshm->number) > fcache->max_user){
+mbbsd.c: fcache->max_user = a;
+mbbsd.c: fcache->max_time = now;
+talk.c: uentp->from_alias ? fcache->replace[uentp->from_alias] :