File ganglia-0014-Report-mem-as-float-to-avoid-uint32-overflow.patch of Package ganglia

From: =?UTF-8?q?Anders=20Bj=C3=B6rklund?= <anders@psqr.se>
Date: Fri, 28 Oct 2016 21:02:05 +0200
Git-commit: c85fe651478bac58c44b8dfe21b0f2962043a0fd
References: bsc#1087487
Subject: [PATCH] Report mem as float, to avoid uint32 overflow

Fixes #260.
Acked-by: John Jolly <jjolly@suse.de>
---
 gmond/python_modules/process/procstat.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gmond/python_modules/process/procstat.py b/gmond/python_modules/process/procstat.py
index b26849b2..93ff9a9c 100644
--- a/gmond/python_modules/process/procstat.py
+++ b/gmond/python_modules/process/procstat.py
@@ -383,6 +383,8 @@ def metric_init(params):
 
         mem = {
             'units': 'B',
+            'value_type': 'float',
+            'format': '%.0f',
             'description': 'The total memory utilization'}
     )
 
-- 
2.13.6

openSUSE Build Service is sponsored by