vlsi / ksar

A sar grapher, fork of http://sourceforge.net/projects/ksar/
Other
246 stars 59 forks source link

Incorrect time parsing? #228

Closed shivakumargn closed 3 years ago

shivakumargn commented 3 years ago

My sar output had start time as 5:30AM and end time as next day 5:20PM. ksar display takes all data points as belonging to same day starting from 00:00 AM in its display. Seems to be incorrect interpretation of date/time.

sar output:

Linux <kernel_version> (myservername)   02/20/2021  _x86_64_    (4 CPU)

05:30:04 AM     CPU      %usr     %nice      %sys   %iowait    %steal      %irq     %soft    %guest    %gnice     %idle
05:40:03 AM     all      6.26      0.01      5.62      0.04      0.26      0.00      0.54      0.00      0.00     87.28
05:40:03 AM       0      5.93      0.00      6.55      0.04      0.29      0.00      2.90      0.00      0.00     84.29
05:40:03 AM       1      7.02      0.01      5.07      0.12      0.30      0.00      0.22      0.00      0.00     87.27
...

05:20:01 AM     all      3.58      0.01      1.84      0.02      0.04      0.00      0.12      0.00      0.00     94.39
05:20:01 AM       0      3.85      0.02      1.76      0.00      0.05      0.00      0.92      0.00      0.00     93.40
05:20:01 AM       1      3.83      0.01      1.92      0.00      0.04      0.00      0.09      0.00      0.00     94.11
...
shivakumargn commented 3 years ago

This is not an issue. sar text was not generated with -t option, hence time was skewed.