[mw-devel] MW3 r1149 - trunk/src
arthur at sucs.org
arthur at sucs.org
Sat Jun 26 20:54:11 BST 2010
Author: arthur
Date: 2010-06-26 20:54:11 +0100 (Sat, 26 Jun 2010)
New Revision: 1149
Modified:
trunk/src/who.c
Log:
add another level to idle times
Modified: trunk/src/who.c
===================================================================
--- trunk/src/who.c 2010-04-05 20:32:12 UTC (rev 1148)
+++ trunk/src/who.c 2010-06-26 19:54:11 UTC (rev 1149)
@@ -332,6 +332,8 @@
{
static char out[7];
+ if (t>=3600*48) sprintf(out,"%2ldd%2ldh",t/86400, t/3600);
+ else
if (t>=3600) sprintf(out,"%2ldh%2ldm",t/3600,(t%3600)/60);
else
if (t>=60) sprintf(out,"%2ldm%2lds",t/60,t%60);
More information about the mw-devel
mailing list