SReject commented on a Page, Up Time Percentage  -  Nov 03, 2011

I do believe this is wut dani was trying to do:

on *:LOAD:set %UTPerc:Beg $ctime
on *:START:set -e %UTPerc:Str $ctime

alias uppercent {
  var %p = $round($calc(($ctime - %UTPerc:Str + %UTPerc:Tot) / ($ctime - %UTPerc:Beg) * 100),2) $+ %
  say Uptime Precent: %p since $asctime(%UTPerc:Beg)
}
on *:EXIT:inc %UTPerc:Tot $calc($ctime - %UTPerc:Str)
on *:UNLOAD:unset %UTPerc:*
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.