From 1d5a0dc2747dde23b8b5cef2e513bbe46e29fb41 Mon Sep 17 00:00:00 2001 From: Dagobert Michelsen Date: Thu, 28 May 2015 12:47:27 +0200 Subject: [PATCH] Use type 'percent' instead of 'zone_cpu' --- src/types.db | 1 - src/zone.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/types.db b/src/types.db index 9e644385..5474659b 100644 --- a/src/types.db +++ b/src/types.db @@ -226,7 +226,6 @@ voltage value:GAUGE:U:U vs_memory value:GAUGE:0:9223372036854775807 vs_processes value:GAUGE:0:65535 vs_threads value:GAUGE:0:65535 -zone_cpu value:GAUGE:0:100.1 # # Legacy types diff --git a/src/zone.c b/src/zone.c index 21a9497e..e550303d 100644 --- a/src/zone.c +++ b/src/zone.c @@ -86,7 +86,7 @@ zone_submit_value(char *zone, gauge_t value) vl.values_len = 1; /*STATIC_ARRAY_SIZE (values);*/ sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "zone", sizeof (vl.plugin)); - sstrncpy (vl.type, "zone_cpu", sizeof (vl.type)); + sstrncpy (vl.type, "percent", sizeof (vl.type)); sstrncpy (vl.type_instance, zone, sizeof (vl.type_instance)); return(plugin_dispatch_values (&vl)); -- 2.11.0