changeset 16 | faec1018028d |
parent 15 | 6222baf5dccc |
15:6222baf5dccc | 16:faec1018028d |
---|---|
83 scr_log_print (LPRINT_LOGNORM, |
83 scr_log_print (LPRINT_LOGNORM, |
84 "Unable to parse system uptime."); |
84 "Unable to parse system uptime."); |
85 g_string_free (line, TRUE); |
85 g_string_free (line, TRUE); |
86 return 0; |
86 return 0; |
87 } |
87 } |
88 g_string_free (line, TRUE); |
|
88 return (sec * hz) + (ssec * hz)/100; |
89 return (sec * hz) + (ssec * hz)/100; |
89 } |
90 } |
90 |
91 |
91 static void do_uptime (char *arg) |
92 static void do_uptime (char *arg) |
92 { |
93 { |