You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python-sarviz's demo.py crashes on any of my sar files:
Traceback (most recent call last):
File "demo.py", line 30, in <module>
main(sys.argv[1], sys.argv[2])
File "demo.py", line 15, in main
sar_viz = viz.Visualization(insar.get_sar_info(), paging=True, network=True, disk=True)
File "/home/nico/src/python-sarviz/sar/viz.py", line 78, in __init__
self._preprocess_sar_data()
File "/home/nico/src/python-sarviz/sar/viz.py", line 114, in _preprocess_sar_data
self.xticks = np.arange(0, tp_count, xtick_label_stepsize)
ZeroDivisionError: division by zero
Debugging shows that both tp_count and xtick_label_stepsize have a value of 0. Setting the parameters of viz.Visualization to false does not solve the problem.
By the way, here is the result of sar -A -f /var/log/sysstat/sa11 (my goal is to have graphs for as many variables as possible):
python-sarviz's demo.py crashes on any of my sar files:
Debugging shows that both
tp_count
andxtick_label_stepsize
have a value of0
. Setting the parameters ofviz.Visualization
tofalse
does not solve the problem.By the way, here is the result of
sar -A -f /var/log/sysstat/sa11
(my goal is to have graphs for as many variables as possible):sar.txt
The text was updated successfully, but these errors were encountered: