1
0
mirror of https://github.com/kenzok8/small-package synced 2025-09-18 18:51:16 +08:00

update-01.30

This commit is contained in:
github-actions[bot]
2022-01-30 20:28:45 +08:00
parent 67863d452f
commit 0292acd471
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=bpytop
PKG_VERSION:=1.0.67
PKG_VERSION:=1.0.68
PKG_RELEASE:=$(AUTORELEASE)
PYPI_NAME:=bpytop

View File

@ -9,7 +9,7 @@
from datetime import timedelta
from _thread import interrupt_main
from collections import defaultdict
@@ -38,6 +38,11 @@ except Exception as e: errors.append(f'{e}')
@@ -37,6 +37,11 @@ except Exception as e: errors.append(f'{e}')
try: import psutil # type: ignore
except Exception as e: errors.append(f'{e}')
@ -21,7 +21,7 @@
SELF_START = time()
SYSTEM: str
@@ -1706,7 +1711,7 @@ class Box:
@@ -1726,7 +1731,7 @@ class Box:
if not "cpu" in cls.boxes or not cls.clock_on: return
cls.c_counter += 1
if cls.c_counter > 3600 / (Config.update_ms / 1000):

View File

@ -24,14 +24,14 @@ f.default=0
f.optional=false
w=s:option(ListValue,"week",translate("Update Time"),translate("Advised to set the automatic update time to idle time."))
w:value(0,translate("Everyday"))
w:value(7,translate("Everyday"))
w:value(1,translate("Monday"))
w:value(2,translate("Tuesday"))
w:value(3,translate("Wednesday"))
w:value(4,translate("Thursday"))
w:value(5,translate("Friday"))
w:value(6,translate("Saturday"))
w:value(7,translate("Sunday"))
w:value(0,translate("Sunday"))
w.default=1
w:depends("enable", "1")
@ -75,7 +75,7 @@ if apply then
n='\n'
end
local week = luci.http.formvalue("cbid.easyupdate.main.week")
if week == '0' then
if week == '7' then
week='*'
end
local hour = luci.http.formvalue("cbid.easyupdate.main.hour")