Commit 19b57985 authored by David Huss's avatar David Huss 💬
Browse files

Fix maybe now

parent 9931711b
......@@ -233,13 +233,13 @@ def meetings_twolines(config: Config, watch: int, fancy: bool):
w = subprocess.run(["w | head -1"], shell=True, stdout=subprocess.PIPE)
w = w.stdout.decode('utf-8').split("load average:")
if len(w) != 2:
w="-"
w = 0.0
else:
w = w[1].strip().split(" ")[0]
try:
w = float(w.replace(",", "."))
except:
w = "-"
w = 0.0
lines = [
"{} rec / ses ppl mod vid mic ear lod".format(endpoint.name[:3]),
"stats {:>2} / {:<2} {:>3} {:>3} {:>3} {:>3} {:>3} {:.1f}"\
......
[tool.poetry]
name = "bbbmon"
version = "0.1.20"
version = "0.1.21"
description = "A small CLI utility to monitor bbb usage"
authors = ["David Huss <david.huss@hfbk-hamburg.de>"]
maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment