mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-17 10:58:31 +00:00
Merge pull request #67 from catspeed-cc/dev-uptime-status
Update uptime.cr
This commit is contained in:
commit
392d71ce3c
@ -7,10 +7,7 @@ class Invidious::Uptime
|
|||||||
if CONFIG.uptime_enabled
|
if CONFIG.uptime_enabled
|
||||||
|
|
||||||
# get the uptime
|
# get the uptime
|
||||||
uptime_cmd = "/usr/bin/uptime"
|
str_uptime = `/usr/bin/uptime -p`
|
||||||
uptime_args = "-p"
|
|
||||||
process = Process.new(uptime_cmd, [uptime_args], output: Process::Redirect::Pipe)
|
|
||||||
str_uptime = process.output.gets_to_end
|
|
||||||
|
|
||||||
else
|
else
|
||||||
str_uptime = ""
|
str_uptime = ""
|
||||||
@ -20,4 +17,4 @@ class Invidious::Uptime
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user