# HG changeset patch # User Myhailo Danylenko # Date 1270387422 -10800 # Node ID 2b0115cae8b2739f54ed748617bdcfacb5fbff3e # Parent 3f69962cbbf4a0f76f007a90093578453e4a5077 Various fixes to last-minute fixes... diff -r 3f69962cbbf4 -r 2b0115cae8b2 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 #include #include +#include #include #include @@ -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);