From 856044b8c4b7bd7e4698f28ad271b11473baeca3 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 5 Apr 2007 15:23:11 +0200 Subject: [PATCH] cpu plugin: Collectd CPU `steal time' as reported by new Linux kernels. --- src/cpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpu.c b/src/cpu.c index 1dc78657..db784746 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -339,6 +339,9 @@ static int cpu_read (void) submit (cpu, "wait", wait); submit (cpu, "interrupt", intr); submit (cpu, "softirq", sitr); + + if (numfields >= 9) + submit (cpu, "steal", atoll (fields[8])); } } -- 2.30.2