[mw-devel] MW3 r1170 - trunk/src

arthur at sucs.org arthur at sucs.org
Wed Aug 4 09:44:40 BST 2010


Author: arthur
Date: 2010-08-04 09:44:39 +0100 (Wed, 04 Aug 2010)
New Revision: 1170

Modified:
   trunk/src/who.c
Log:
forgot to mod the hours when printing days


Modified: trunk/src/who.c
===================================================================
--- trunk/src/who.c	2010-07-30 13:57:47 UTC (rev 1169)
+++ trunk/src/who.c	2010-08-04 08:44:39 UTC (rev 1170)
@@ -339,7 +339,7 @@
 {
 	static char out[7];
 
-	if (t>=3600*48) sprintf(out,"%2ldd%2ldh",t/86400, t/3600);
+	if (t>=3600*48) sprintf(out,"%2ldd%2ldh",t/86400, (t%86400)/3600);
 	else
 	if (t>=3600) sprintf(out,"%2ldh%2ldm",t/3600,(t%3600)/60);
 	else




More information about the mw-devel mailing list