Only check empty string
Ali Borhani committed
May 13, 2017 at 17:38 UTC
ca63869f7dc92a0c72801f01c5e415b2e2d1eb57
1 file changed
+1
-1
python.d/mysql.chart.py
+1
-1
@@ -117,7 +117,7 @@ GLOBAL_STATS = [
117
'Connection_errors_tcpwrap']
118
119
def slave_seconds(value):
120
- return value if value >= 0 else -1
120
+ return value if value is not '' else -1
121
122
def slave_running(value):
123
return 1 if value == 'Yes' else -1