-
-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to select number of decimal places
Add new option: "--dec={0|1|2}" which can be used to specify the number of decimal places. This option can be used with sar, mpstat, iostat, pidstat and cifsiostat. Sample output: $ sar -b Linux 4.4.14-200.fc22.x86_64 (home) 05/10/18 _x86_64_ (8 CPU) 10:58:14 LINUX RESTART (8 CPU) 11:00:01 tps rtps wtps bread/s bwrtn/s 11:05:10 25.20 21.22 3.97 1884.87 644.03 11:10:10 10.02 8.60 1.42 633.84 33.87 11:15:10 0.89 0.16 0.73 2.11 73.44 11:20:04 5.65 3.27 2.37 102.24 104.44 [...] $ sar -b --dec=1 Linux 4.4.14-200.fc22.x86_64 (home) 05/10/18 _x86_64_ (8 CPU) 10:58:14 LINUX RESTART (8 CPU) 11:00:01 tps rtps wtps bread/s bwrtn/s 11:05:10 25.2 21.2 4.0 1884.9 644.0 11:10:10 10.0 8.6 1.4 633.8 33.9 11:15:10 0.9 0.2 0.7 2.1 73.4 11:20:04 5.6 3.3 2.4 102.2 104.4 [...] $ sar -b --dec=0 Linux 4.4.14-200.fc22.x86_64 (home) 05/10/18 _x86_64_ (8 CPU) 10:58:14 LINUX RESTART (8 CPU) 11:00:01 tps rtps wtps bread/s bwrtn/s 11:05:10 25 21 4 1885 644 11:10:10 10 9 1 634 34 11:15:10 1 0 1 2 73 11:20:04 6 3 2 102 104 [...] Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
111 additions
and
19 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
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
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
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
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
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
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
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