Various fixes to last-minute fixes...
authorMyhailo Danylenko <isbear@ukrpost.net>
Sun, 04 Apr 2010 16:23:42 +0300
changeset 1 2b0115cae8b2
parent 0 3f69962cbbf4
child 2 88890ebee9e3
Various fixes to last-minute fixes...
uptime.c
--- a/uptime.c	Sun Apr 04 15:45:42 2010 +0300
+++ b/uptime.c	Sun Apr 04 16:23:42 2010 +0300
@@ -20,6 +20,7 @@
 #include <gmodule.h>
 #include <time.h>
 #include <stdio.h>
+#include <string.h>
 
 #include <mcabber/modules.h>
 #include <mcabber/logprint.h>
@@ -107,7 +108,7 @@
 		gchar *p = strrchr (line -> str, ')'); // end of command
 		if (!p) {
 			g_string_free (line, TRUE);
-			return "Missing ) in own stats"
+			return "Missing ) in own stats";
 		}
 		while (*p && isspace (*p)) p++;
 		while (*p && isalpha (*p)) p++; // state (%c)
@@ -184,9 +185,9 @@
 
 		guint hz = settings_opt_get_int ("uptime_hz");
 		if (!hz)
-			hz = 250;
+			hz = 100;
 		starttime = kbtime + (mstime / hz);
-	} else {
+	} else
 		starttime = time (NULL);
 
 	cmd_add ("uptime", "", 0, 0, do_uptime, NULL);