Skip to content
Snippets Groups Projects
Commit 19b57985 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Fix maybe now

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