@cryptotaxi247 / netdata-1 / commits / ec3feae29

Fix None value for Seconds_Behind_Master

Ali Borhani committed Jul 28, 2017 at 11:44 UTC ec3feae29aec46529d86ec57c9a3f32c55c4c420
1 file changed +4 -1
python.d/mysql.chart.py
+4 -1
@@ -117,7 +117,10 @@ GLOBAL_STATS = [
117 'Connection_errors_tcpwrap']
118
119 def slave_seconds(value):
120 - return value if value is not '' else -1
120 + try:
121 + return int(value)
122 + except ValueError:
123 + return -1
124
125 def slave_running(value):
126 return 1 if value == 'Yes' else -1