summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-15 16:24:39 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-15 16:24:39 +0800
commit140d78119ac42f72a590947d5c5a992047af44a7 (patch)
tree0e2b8e1755a91fc1838027c37b92c340342bca13
parent7e23cd0f57456e78432ee21381767cf07b5d85c4 (diff)
downloadpttbbs-140d78119ac42f72a590947d5c5a992047af44a7.tar
pttbbs-140d78119ac42f72a590947d5c5a992047af44a7.tar.gz
pttbbs-140d78119ac42f72a590947d5c5a992047af44a7.tar.bz2
pttbbs-140d78119ac42f72a590947d5c5a992047af44a7.tar.lz
pttbbs-140d78119ac42f72a590947d5c5a992047af44a7.tar.xz
pttbbs-140d78119ac42f72a590947d5c5a992047af44a7.tar.zst
pttbbs-140d78119ac42f72a590947d5c5a992047af44a7.zip
add over 24hr idle
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@172 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 70fb4fd8..4d44182f 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.34 2002/05/14 15:08:48 ptt Exp $ */
+/* $Id: talk.c,v 1.35 2002/05/15 08:24:39 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -1709,8 +1709,10 @@ static void pickup_user(void)
//diff = pklist[ch].idle;
// if (diff > 1800) diff = 1800; /* Doma: 以免一大串的發呆時間 */
// in2: max 30'00 :P Ptt:真實沒關係
- if (diff > 3600 )
- sprintf(buf,"%3ldH%02ld", diff / 3600, (diff/60) % 60);
+ if (diff > 3600*24)
+ strcpy(buf," -----");
+ else if (diff > 3600 )
+ sprintf(buf,"%3ldh%02ld", diff / 3600, (diff/60) % 60);
else if (diff > 0)
sprintf(buf, "%3ld'%02ld", diff / 60, diff % 60);
else