{cifsiostat,iostat,mpstat,pidstat, and sar} --dec report values from single alphabet other than the defined values 0,1,2
Issue
-
{cifsiostat,iostat,mpstat,pidstat, and sar} --dec display values from single alphabet other than the defined value of 0,1,2.
-
As per the man page
--decshould accept only 0,1, and 2.
--dec={ 0 | 1 | 2 }
Specify the number of decimal places to use (0 to 2, default value is 2).
- When a single alphabet is passed it accepts and showed the output similar to what we get when a 0 is passed.
# iostat --dec=a
Linux 5.14.0-162.12.1.el9_1.x86_64 (hostname) 02/23/2023 _x86_64_ (2 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
0 0 0 0 0 99
Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
dm-0 2 65 11 0 825642 135273 0
dm-1 1 1 6 0 7212 70124 0
vda 2 68 19 0 858398 241494 0
Environment
- RedHat Enterprise Linux 9.0, 9.1
- sysstat-12.5.4-3.el9.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.