mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-11-25 22:28:32 +01:00
taskGetSystemUptime to run every 5 ticks
This commit is contained in:
@@ -264,6 +264,7 @@ func ExecuteSchedules(tick int) {
|
|||||||
|
|
||||||
if tick%5 == 0 {
|
if tick%5 == 0 {
|
||||||
// Executing every 5 ticks
|
// Executing every 5 ticks
|
||||||
|
taskGetSystemUptime()
|
||||||
log.Println(taskGetStorageDevices())
|
log.Println(taskGetStorageDevices())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -273,11 +274,6 @@ func ExecuteSchedules(tick int) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if tick%60 == 0 {
|
|
||||||
// Every 60 ticks...
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Just add a schedule here if you need a custom one (every "tick hour", every "tick day", etc...)
|
// Just add a schedule here if you need a custom one (every "tick hour", every "tick day", etc...)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user