Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/procps/uptime.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/procps/uptime.c
r821 r1770 5 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 6 6 * 7 * Licensed under the GPL v 2 or later, see the file LICENSE in this tarball.7 * Licensed under the GPL version 2, see the file LICENSE in this tarball. 8 8 */ 9 9 … … 16 16 /* getopt not needed */ 17 17 18 #include "busybox.h" 19 #include <stdio.h> 20 #include <time.h> 21 #include <errno.h> 22 #include <stdlib.h> 18 #include "libbb.h" 23 19 24 20 #ifndef FSHIFT … … 30 26 31 27 28 int uptime_main(int argc, char **argv); 32 29 int uptime_main(int argc, char **argv) 33 30 { … … 50 47 uphours = (upminutes / 60) % 24; 51 48 upminutes %= 60; 52 if (uphours)49 if (uphours) 53 50 printf("%2d:%02d, ", uphours, upminutes); 54 51 else
Note:
See TracChangeset
for help on using the changeset viewer.