[go: up one dir, main page]

Module uptime

Module uptime 

Source
Expand description

Provides functions to get system uptime, number of users and load average.

Enums§

UptimeError

Functions§

format_nusers
Format the number of users to a human-readable string
get_formatted_loadavg
Get the system load average in a human-readable format
get_formatted_nusers
Get the number of users currently logged in in a human-readable format
get_formatted_time
Returns the formatted time string, e.g. “12:34:56”
get_formatted_uptime
Get the system uptime in a human-readable format
get_loadavg
Get the system load average
get_nusers
Get the number of users currently logged in
get_uptime
Get the system uptime