Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动推送-免打扰提示信息问题 #258

Closed
GOUKI9999 opened this issue Jan 3, 2024 · 3 comments
Closed

自动推送-免打扰提示信息问题 #258

GOUKI9999 opened this issue Jan 3, 2024 · 3 comments

Comments

@GOUKI9999
Copy link
Contributor

提示前略,其中包括:
CPU 负载过高
CPU 负载已连续 天 小时 超过预设 #没有按预想显示连续超过0天2小时
接下来 -3600 秒 不再提示 #没有按预想显示接下来1小时不再提示
当前负载:5.80

image
设置如图,感觉好像是减法错误?
因为不完全理解超过阈值的持续时间累计逻辑,像我这样设置阈值超过2小时才提醒,并间隔1小时不再提醒应该并不是不合理的设置。
如果从12:00开始到14:00持续高于阈值,则在14:00发出,并在到15:00之前不再提醒;那么下一个提醒应该是15:00还是16:00呢,也就是是否在发出提示之后就重置了阈值持续时间累计?

@tty228
Copy link
Owner

tty228 commented Jan 16, 2024

(这个 bug 我还以为没人发现呢,沉迷魔兽一直没管)

@GOUKI9999
Copy link
Contributor Author

魔,魔兽?

tty228 added a commit that referenced this issue Jul 4, 2024
tty228 added a commit that referenced this issue Jul 4, 2024
@tty228
Copy link
Owner

tty228 commented Jul 4, 2024

14:00 第一次推送通知后,实际上还是一直在检测,但是不推送通知,如果持续高负载,下一次发送通知会在 15:00 发送
检测超时基于 当前时间戳-上一次正常时的时间戳
免打扰时间为每次发送后记录时间戳,CD 结束后清除

@tty228 tty228 closed this as completed Jul 4, 2024
tty228 added a commit that referenced this issue Jul 5, 2024
1. pull #277
2. pull #281
3. fix #270
4. fix #279
5. fix #278
6. fix #275
7. fix #252
8. fix #258
9. fix #241
10. 使客户端列表页面支持自动刷新
11. 在客户端列表页面显示客户端是否可以通过 http 或 https 访问
12. 添加选项,可以自行选择客户端列表的排序方式
13. 添加选项 - 始终进行在线检测的 IP
14. 移除 luci-app-serverchan 自动移植配置脚本
15. debug

Co-Authored-By: abu9 <[email protected]>
Co-Authored-By: 闲人一枚 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants