Bug 190697 - vmstat(8): vmstat -i -w 1 does not work as expected
Summary: vmstat(8): vmstat -i -w 1 does not work as expected
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-06 09:48 UTC by Uffe Jakobsen
Modified: 2016-06-23 15:40 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uffe Jakobsen 2014-06-06 09:48:31 UTC
vmstat -i -w 1 does not work as expected

when running "vmstat -i -w 1" the command and its arguments is gladly accepted.
I would expect that vmstat would output the results of "vmstat -i" with an interval of one second - running forever.

However it only runs once and then exits.
Comment 1 Alan Somers freebsd_committer freebsd_triage 2016-06-23 15:40:21 UTC
Fixed by 277569

r277569 | will | 2015-01-23 09:15:55 -0700 (Fri, 23 Jan 2015) | 7 lines

Make "vmstat -i" respect the -c <count> and -i <interval> options together.

Submitted by:   asomers
MFC after:      1 week
Sponsored by:   Spectra Logic