From 762cb238f09e6de5c890703b96b12af3fb51a89a Mon Sep 17 00:00:00 2001
From: "Michael D. M. Dryden" <mk.dryden@utoronto.ca>
Date: Thu, 7 Apr 2022 16:41:46 -0400
Subject: [PATCH] Properly convert floats to int in parameters.

---
 dstat_interface/core/dstat/utility.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dstat_interface/core/dstat/utility.py b/dstat_interface/core/dstat/utility.py
index 00860fb..bd135e8 100644
--- a/dstat_interface/core/dstat/utility.py
+++ b/dstat_interface/core/dstat/utility.py
@@ -28,22 +28,22 @@ def rel_mv_to_dac(mv: float) -> int:
 
 def param_test_uint16(u: int) -> int:
     assert 0 <= u <= 65535
-    return u
+    return int(u)
 
 
 def param_test_non_zero_uint16(u: int) -> int:
     assert 0 < u <= 65535
-    return u
+    return int(u)
 
 
 def param_test_uint8(u: int) -> int:
     assert 0 < u <= 255
-    return u
+    return int(u)
 
 
 def param_test_non_zero_uint8(u: int) -> int:
     assert 0 < u <= 255
-    return u
+    return int(u)
 
 
 class VersionCheckProcess(BaseExperimentProcess):
-- 
GitLab