Project

General

Profile

[Script] Uptime record

Added by Per Amundsen 7 months ago

Save and show uptime record

on *:START:timer 0 60 updaterec
on *:LOAD:timer 0 60 updaterec
alias updaterec {
  var %uptime $uptime(system, 0)
  if (!%uptimerec) {
    set %uptimerec 0
  }

  if (%uptime > %uptimerec) {
    set %uptimerec %uptime
  }
}

alias uptimerec {
  msg $active Record is $duration($calc(%uptimerec / 1000))
}