@@ -81,83 +81,83 @@ def wrap(
81
81
82
82
83
83
@async_job ("CPU_Percentage" )
84
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['PERCENTAGE' ].get ("INTERVAL" , None )).total_seconds ())
84
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['PERCENTAGE' ].get ("INTERVAL" , 0 )).total_seconds ())
85
85
def CPUPercentage ():
86
86
""" Refresh the CPU Percentage """
87
87
# logger.debug("Refresh CPU Percentage")
88
88
stats .CPU .percentage ()
89
89
90
90
91
91
@async_job ("CPU_Frequency" )
92
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['FREQUENCY' ].get ("INTERVAL" , None )).total_seconds ())
92
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['FREQUENCY' ].get ("INTERVAL" , 0 )).total_seconds ())
93
93
def CPUFrequency ():
94
94
""" Refresh the CPU Frequency """
95
95
# logger.debug("Refresh CPU Frequency")
96
96
stats .CPU .frequency ()
97
97
98
98
99
99
@async_job ("CPU_Load" )
100
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['LOAD' ].get ("INTERVAL" , None )).total_seconds ())
100
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['LOAD' ].get ("INTERVAL" , 0 )).total_seconds ())
101
101
def CPULoad ():
102
102
""" Refresh the CPU Load """
103
103
# logger.debug("Refresh CPU Load")
104
104
stats .CPU .load ()
105
105
106
106
107
107
@async_job ("CPU_Load" )
108
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['TEMPERATURE' ].get ("INTERVAL" , None )).total_seconds ())
108
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['TEMPERATURE' ].get ("INTERVAL" , 0 )).total_seconds ())
109
109
def CPUTemperature ():
110
110
""" Refresh the CPU Temperature """
111
111
# logger.debug("Refresh CPU Temperature")
112
112
stats .CPU .temperature ()
113
113
114
114
115
115
@async_job ("CPU_FanSpeed" )
116
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['FAN_SPEED' ].get ("INTERVAL" , None )).total_seconds ())
116
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CPU' ]['FAN_SPEED' ].get ("INTERVAL" , 0 )).total_seconds ())
117
117
def CPUFanSpeed ():
118
118
""" Refresh the CPU Fan Speed """
119
119
# logger.debug("Refresh CPU Fan Speed")
120
120
stats .CPU .fan_speed ()
121
121
122
122
123
123
@async_job ("GPU_Stats" )
124
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['GPU' ].get ("INTERVAL" , None )).total_seconds ())
124
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['GPU' ].get ("INTERVAL" , 0 )).total_seconds ())
125
125
def GpuStats ():
126
126
""" Refresh the GPU Stats """
127
127
# logger.debug("Refresh GPU Stats")
128
128
stats .Gpu .stats ()
129
129
130
130
131
131
@async_job ("Memory_Stats" )
132
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['MEMORY' ].get ("INTERVAL" , None )).total_seconds ())
132
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['MEMORY' ].get ("INTERVAL" , 0 )).total_seconds ())
133
133
def MemoryStats ():
134
134
# logger.debug("Refresh memory stats")
135
135
stats .Memory .stats ()
136
136
137
137
138
138
@async_job ("Disk_Stats" )
139
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['DISK' ].get ("INTERVAL" , None )).total_seconds ())
139
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['DISK' ].get ("INTERVAL" , 0 )).total_seconds ())
140
140
def DiskStats ():
141
141
# logger.debug("Refresh disk stats")
142
142
stats .Disk .stats ()
143
143
144
144
145
145
@async_job ("Net_Stats" )
146
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['NET' ].get ("INTERVAL" , None )).total_seconds ())
146
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['NET' ].get ("INTERVAL" , 0 )).total_seconds ())
147
147
def NetStats ():
148
148
# logger.debug("Refresh net stats")
149
149
stats .Net .stats ()
150
150
151
151
152
152
@async_job ("Date_Stats" )
153
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['DATE' ].get ("INTERVAL" , None )).total_seconds ())
153
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['DATE' ].get ("INTERVAL" , 0 )).total_seconds ())
154
154
def DateStats ():
155
155
# logger.debug("Refresh date stats")
156
156
stats .Date .stats ()
157
157
158
158
159
159
@async_job ("Custom_Stats" )
160
- @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CUSTOM' ].get ("INTERVAL" , None )).total_seconds ())
160
+ @schedule (timedelta (seconds = config .THEME_DATA ['STATS' ]['CUSTOM' ].get ("INTERVAL" , 0 )).total_seconds ())
161
161
def CustomStats ():
162
162
# print("Refresh custom stats")
163
163
stats .Custom .stats ()
0 commit comments