@@ -81,83 +81,83 @@ def wrap(
8181
8282
8383@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 ())
8585def CPUPercentage ():
8686 """ Refresh the CPU Percentage """
8787 # logger.debug("Refresh CPU Percentage")
8888 stats .CPU .percentage ()
8989
9090
9191@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 ())
9393def CPUFrequency ():
9494 """ Refresh the CPU Frequency """
9595 # logger.debug("Refresh CPU Frequency")
9696 stats .CPU .frequency ()
9797
9898
9999@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 ())
101101def CPULoad ():
102102 """ Refresh the CPU Load """
103103 # logger.debug("Refresh CPU Load")
104104 stats .CPU .load ()
105105
106106
107107@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 ())
109109def CPUTemperature ():
110110 """ Refresh the CPU Temperature """
111111 # logger.debug("Refresh CPU Temperature")
112112 stats .CPU .temperature ()
113113
114114
115115@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 ())
117117def CPUFanSpeed ():
118118 """ Refresh the CPU Fan Speed """
119119 # logger.debug("Refresh CPU Fan Speed")
120120 stats .CPU .fan_speed ()
121121
122122
123123@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 ())
125125def GpuStats ():
126126 """ Refresh the GPU Stats """
127127 # logger.debug("Refresh GPU Stats")
128128 stats .Gpu .stats ()
129129
130130
131131@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 ())
133133def MemoryStats ():
134134 # logger.debug("Refresh memory stats")
135135 stats .Memory .stats ()
136136
137137
138138@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 ())
140140def DiskStats ():
141141 # logger.debug("Refresh disk stats")
142142 stats .Disk .stats ()
143143
144144
145145@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 ())
147147def NetStats ():
148148 # logger.debug("Refresh net stats")
149149 stats .Net .stats ()
150150
151151
152152@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 ())
154154def DateStats ():
155155 # logger.debug("Refresh date stats")
156156 stats .Date .stats ()
157157
158158
159159@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 ())
161161def CustomStats ():
162162 # print("Refresh custom stats")
163163 stats .Custom .stats ()
0 commit comments