@cryptotaxi247 / netdata-1 / commits / 722fcfef2

Fix invalid -1 'seconds behind the master' for slaves

Ali Borhani committed May 13, 2017 at 15:46 UTC 722fcfef23c4ac574364d9bcc627e2f7c809abfa
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 else -1
120 + return value if value >= 0 else -1
121
122 def slave_running(value):
123 return 1 if value == 'Yes' else -1