mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-09-24 05:41:43 +02:00
taskGetSystemUptime to run every 5 ticks
This commit is contained in:
@@ -264,6 +264,7 @@ func ExecuteSchedules(tick int) {
|
||||
|
||||
if tick%5 == 0 {
|
||||
// Executing every 5 ticks
|
||||
taskGetSystemUptime()
|
||||
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...)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user