uptime.c
changeset 15 6222baf5dccc
parent 14 3f6d549befa8
child 16 faec1018028d
equal deleted inserted replaced
14:3f6d549befa8 15:6222baf5dccc
    86 		return 0;
    86 		return 0;
    87 	}
    87 	}
    88 	return (sec * hz) + (ssec * hz)/100;
    88 	return (sec * hz) + (ssec * hz)/100;
    89 }
    89 }
    90 
    90 
    91 void do_uptime (char *arg)
    91 static void do_uptime (char *arg)
    92 {
    92 {
    93 	GString *line = g_string_new (NULL);
    93 	GString *line = g_string_new (NULL);
    94 	gchar strstartdate[256];
    94 	gchar strstartdate[256];
    95 
    95 
    96 	guint seconds = time (NULL) - starttime;
    96 	guint seconds = time (NULL) - starttime;