charts.py: dimension mul/div check fix
lgz committed
Oct 25, 2017 at 06:46 UTC
2ed8536127ab66d866a4421243d7a67a5b3f1e83
1 file changed
+2
-2
python.d/python_modules/bases/charts.py
+2
-2
@@ -257,9 +257,9 @@ class Dimension:
257
258
if self.params.get('algorithm') not in DIMENSION_ALGORITHMS:
259
self.params['algorithm'] = 'absolute'
260
- if not str(self.params.get('multiplier')).isdigit():
260
+ if not isinstance(self.params.get('multiplier'), int):
261
self.params['multiplier'] = 1
262
- if not str(self.params.get('divisor')).isdigit():
262
+ if not isinstance(self.params.get('divisor'), int):
263
self.params['divisor'] = 1
264
self.params.setdefault('hidden', '')
265