diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2012-02-07 03:15:12 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2012-02-07 03:15:12 +0000 |
| commit | 55074ea950343ee2f8c87d6ba450632d3661cc42 (patch) | |
| tree | 16cd1997454b1b22d6f89a1a747c2473703521b9 /usr.bin | |
| parent | ab9f136e9ddd69f382bc6c29f02291e7c8cd82d4 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/vmstat/vmstat.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index cf4b73a07c26..98503ccbc040 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -408,14 +408,10 @@ static long getuptime(void) { struct timespec sp; - time_t uptime; (void)clock_gettime(CLOCK_MONOTONIC, &sp); - uptime = sp.tv_sec; - if (uptime <= 0 || uptime > 60*60*24*365*10) - errx(1, "time makes no sense; namelist must be wrong"); - return(uptime); + return(sp.tv_sec); } static void |
