From 18d77192df48e59a40facc1149163bb6af7575a6 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 26 Dec 2022 00:20:04 +0100 Subject: [PATCH] config test --- statistiques/parseStats.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/statistiques/parseStats.py b/statistiques/parseStats.py index af424ac..febc622 100755 --- a/statistiques/parseStats.py +++ b/statistiques/parseStats.py @@ -202,6 +202,13 @@ def runMain(): print(f"Moyenne participants par conference={moyenne_part}") except: pass + try: + moyenne_duree = int(res['total_conference_seconds'].split()[0] * 60) / int(res['total_conferences_completed']) + moyenne_duree = int((moyenne_part + 0.5) * 10) / 10 + + print(f"duree moyenne des conferences={moyenne_duree}") + except: + pass if __name__ == '__main__': runMain()