Kaydet (Commit) d56dccd2 authored tarafından Hakan Dündar's avatar Hakan Dündar

Fix: Change graph data history

üst c45153a8
......@@ -39,21 +39,24 @@ class MainWindow():
# Show root privileges warning
self.root_privileges_warning()
# Define these settings in order to avoid error
# on the first call of "main_gui_tab_loop" function.
Config.current_main_tab = -1
Config.performance_tab_current_sub_tab = -1
# Define initial variables for performance summary on the window headerbar
self.main_gui_performance_summary_headerbar_initial()
# Run "Performance" module in order to provide performance data to Performance tab and performance summary on the headerbar.
Performance.performance_background_initial_func()
# Define these settings in order to avoid error
# on the first call of "main_gui_tab_loop" function.
Config.current_main_tab = -1
Config.performance_tab_current_sub_tab = -1
# Start loop function to run loop functions of opened tabs to get data of them.
self.main_gui_tab_loop()
# Switch to default tab
self.main_gui_default_tab_func()
# Connect GUI signals
# Connect GUI signals after switching to default tab.
self.main_gui_connect_signals()
......
......@@ -700,7 +700,7 @@ class SettingsWindow:
for i in range(network_receive_speed_len):
Performance.network_receive_speed[i] = Performance.network_receive_speed[i][chart_data_history_current-chart_data_history_new:] # "network_receive_speed" list has sub-lists and trimming is performed for every sub-lists (for every network card).
Performance.network_send_speed[i] = Performance.network_send_speed[i][chart_data_history_current-chart_data_history_new:] # "network_send_speed" list has sub-lists and trimming is performed for every sub-lists (for every network card).
if MainWindow.radiobutton1005.get_active() == True:
if MainWindow.gpu_tb.get_active() == True:
from Gpu import Gpu
Gpu.fps_count = Gpu.fps_count[chart_data_history_current-chart_data_history_new:] # "fps_count" list has no sub-lists and trimming is performed in this way.
if chart_data_history_current < chart_data_history_new: # Add list of zeroes to the beginning part of the lists if new "chart_data_history" value is bigger than the old value.
......@@ -718,7 +718,7 @@ class SettingsWindow:
for i in range(network_receive_speed_len):
Performance.network_receive_speed[i] = list_to_add + Performance.network_receive_speed[i] # "network_receive_speed" list has sub-lists and addition is performed for every sub-lists (for every network card).
Performance.network_send_speed[i] = list_to_add + Performance.network_send_speed[i] # "network_send_speed" list has sub-lists and addition is performed for every sub-lists (for every network card).
if MainWindow.radiobutton1005.get_active() == True:
if MainWindow.gpu_tb.get_active() == True:
from Gpu import Gpu
Gpu.fps_count = list_to_add + Gpu.fps_count # "fps_count" list has no sub-lists and addition is performed in this way.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment