From 33c6ace2e0fbb3afa6198bdcf49967adc4bd99e9 Mon Sep 17 00:00:00 2001 From: Didi Hoffmann Date: Fri, 2 Feb 2024 21:49:43 +0100 Subject: [PATCH] float to int --- xgb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xgb.py b/xgb.py index 235c07c..4e789b0 100644 --- a/xgb.py +++ b/xgb.py @@ -147,7 +147,7 @@ def interpolate_predictions(predictions): import psutil def cpu_utalisation(): while True: - yield str(psutil.cpu_percent(args.interval)) + yield str(psutil.cpu_percent(args.interval) * 100) input_source = cpu_utalisation()