From: Dagobert Michelsen Date: Thu, 28 May 2015 10:47:27 +0000 (+0200) Subject: Use type 'percent' instead of 'zone_cpu' X-Git-Tag: collectd-5.6.0~709^2~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1d5a0dc2747dde23b8b5cef2e513bbe46e29fb41;p=collectd.git Use type 'percent' instead of 'zone_cpu' --- 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));