diff --git a/bbbmon/meetings.py b/bbbmon/meetings.py index aa500868979e2c4c17a8306954d9f8a34fdc072c..8f7c7408aec4f0303aded30d406b700125cbbf1b 100644 --- a/bbbmon/meetings.py +++ b/bbbmon/meetings.py @@ -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}"\ diff --git a/pyproject.toml b/pyproject.toml index 646886aa8906d09cc6f78e0eba6fab4b1a55cb13..586bd5a0296fce883cf8b419fd679795d34f3169 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [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>"]