mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-17 10:58:31 +00:00
removed commented code
This commit is contained in:
parent
5632e31335
commit
0a033b3dea
@ -5,12 +5,6 @@ class Invidious::Loadavg
|
|||||||
str_loadavg = "error"
|
str_loadavg = "error"
|
||||||
|
|
||||||
if CONFIG.loadavg_enabled
|
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
|
|
||||||
|
|
||||||
str_loadavg = `/usr/bin/cat /proc/loadavg | awk -F'[ ]' '{print $1" "$2" "$3}'`
|
str_loadavg = `/usr/bin/cat /proc/loadavg | awk -F'[ ]' '{print $1" "$2" "$3}'`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user