mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-19 07:05:58 -04:00
test
This commit is contained in:
parent
d9b9cc0d7c
commit
6b426c2886
@ -7,10 +7,12 @@ class Invidious::Loadavg
|
||||
if CONFIG.loadavg_enabled
|
||||
|
||||
# get the uptime
|
||||
loadavg_cmd = "/usr/bin/cat /proc/loadavg | awk -F'[ ]' '{print $1\" \"$2\" \"$3}'"
|
||||
loadavg_args = ""
|
||||
process = Process.new(loadavg_cmd, [loadavg_args], output: Process::Redirect::Pipe)
|
||||
str_loadavg = process.output.gets_to_end
|
||||
#loadavg_cmd = "/usr/bin/cat /proc/loadavg | awk -F'[ ]' '{print $1\" \"$2\" \"$3}'"
|
||||
#loadavg_args = ""
|
||||
#process = Process.new(loadavg_cmd, [loadavg_args], output: Process::Redirect::Pipe)
|
||||
#str_loadavg = process.output.gets_to_end
|
||||
|
||||
str_loadavg = "test"
|
||||
|
||||
else
|
||||
str_loadavg = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user