🍓 Sync 2026-07-02 20:41:59

This commit is contained in:
github-actions[bot] committed 2026-07-02 20:41:59 +08:00
1 parent 50fbe1704c
commit 14537a500f
21 files changed
+474 -114

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=watchcat
PKG_VERSION:=1
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
PKG_LICENSE:=GPL-2.0
+5 -1
View File
@@ -169,6 +169,8 @@ watchcat_monitor_network() {
done
[ "$((time_now - time_lastcheck_withinternet))" -ge "$failure_period" ] && {
recovery_started="$time_now"
if [ "$script" != "" ]; then
watchcat_run_script "$script" "$iface"
else
@@ -188,8 +190,10 @@ watchcat_monitor_network() {
time_now="$(cat /proc/uptime)"
time_now="${time_now%%.*}"
time_lastcheck="$time_now"
time_lastcheck_withinternet="$time_now"
else
time_lastcheck_withinternet="$recovery_started"
fi
time_lastcheck_withinternet="$time_now"
}
done