Browse Source

varnish_module: memory usage calc fix

lgz 7 years ago
parent
commit
8a2a78f74c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      python.d/varnish.chart.py

+ 2 - 2
python.d/varnish.chart.py

@@ -213,8 +213,8 @@ class Service(ExecutableService):
 
         data.update(dict((param, value) for _, param, value in server_stats))
 
-        data['memory_allocated'] = int(data['s0.g_bytes'])
-        data['memory_free'] = int(data['s0.g_space']) - data['memory_allocated']
+        data['memory_allocated'] = data['s0.g_bytes']
+        data['memory_free'] = data['s0.g_space']
 
         return data