/*
- * Copyright (C) 2010-2012 jeanfi@gmail.com
+ * Copyright (C) 2010-2013 jeanfi@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
label = strdup("cpu usage");
type = SENSOR_TYPE_CPU_USAGE;
- psensor = psensor_create(id, label, type, measures_len);
+ psensor = psensor_create(id, label, strdup("CPU"), type, measures_len);
return psensor;
}
while (*ss) {
s = *ss;
- if (s->type == SENSOR_TYPE_CPU_USAGE)
+ if (!(s->type & SENSOR_TYPE_REMOTE)
+ && s->type == SENSOR_TYPE_CPU_USAGE)
cpu_usage_sensor_update(s);
ss++;