Various fixes to last-minute fixes...
--- 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);