-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify scanning /sys/block/<dev>/ stats for iostat
Use scanf to to read the stats provided by the /sys file system. This rest of the code is still quite convoluted. In case of an error we are returning 0 values - not sure this is a good choice. Signed-off-by: Christian Lindig <[email protected]>
- Loading branch information
Showing
1 changed file
with
39 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters