diff options
| author | Antoine Brodin <antoine@FreeBSD.org> | 2008-03-17 18:31:43 +0000 |
|---|---|---|
| committer | Antoine Brodin <antoine@FreeBSD.org> | 2008-03-17 18:31:43 +0000 |
| commit | 887019fbbc8d59bb130beaae63aef573dea44e91 (patch) | |
| tree | b2c0df48168cdeb0dd0c30b81562ef0a320deba8 | |
| parent | afe5acff1bc15c2649c1533e865a4db83f3a581c (diff) | |
Notes
| -rw-r--r-- | usr.bin/ruptime/ruptime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ruptime/ruptime.c b/usr.bin/ruptime/ruptime.c index f0778ea3f4c2..1e3356f6f86c 100644 --- a/usr.bin/ruptime/ruptime.c +++ b/usr.bin/ruptime/ruptime.c @@ -191,6 +191,7 @@ ruptime(const char *host, int aflg, int (*cmp)(const void *, const void *)) rewinddir(dirp); hsp = NULL; maxloadav = -1; + (void)time(&now); for (nhosts = hspace = 0; (dp = readdir(dirp)) != NULL;) { if (dp->d_ino == 0 || strncmp(dp->d_name, "whod.", 5) != 0) continue; @@ -239,7 +240,6 @@ ruptime(const char *host, int aflg, int (*cmp)(const void *, const void *)) warnx("host %s not in %s", host, _PATH_RWHODIR); } - (void)time(&now); qsort(hs, nhosts, sizeof(hs[0]), cmp); for (i = 0; i < (int)nhosts; i++) { hsp = &hs[i]; |
