"""# Get chart y limit values in order to show maximum values of the charts as 100.
chart_y_limit_list = []
for device_name in device_name_list:
chart_y_limit_list.append(100)"""
# Maximum performance data value is multiplied by 1.1 in order to scale chart when performance data is increased or decreased for preventing the line being out of the chart border.
# try-except is used in order to prevent errors if first initial function is not finished and "performance_data_unit_converter_func" is not run.
exceptAttributeError:
return
...
...
@@ -1694,7 +1693,7 @@ class Performance:
# "0.0001" is used in order to take decimal part of the numbers into account. For example, 1.9999 (2-0.0001). This number is enough because maximum precision of the performance data is "3" (1.234 MiB/s).
# try-except is used in order to prevent errors if first initial function is not finished and "performance_data_unit_converter_func" is not run.
exceptAttributeError:
return
...
...
@@ -1757,7 +1758,7 @@ class Performance:
# "0.0001" is used in order to take decimal part of the numbers into account. For example, 1.9999 (2-0.0001). This number is enough because maximum precision of the performance data is "3" (1.234 MiB/s).
# "*args" is used in order to prevent "" warning and obtain a repeated function by using "GLib.timeout_source_new()". "GLib.timeout_source_new()" is used instead of "GLib.timeout_add()" to be able to change the update interval and run the loop again without waiting ending the previous update interval.