gmond plugin: Fixed a typo.
authorSebastian Harl <sh@tokkee.org>
Tue, 13 Oct 2009 17:39:37 +0000 (19:39 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 13 Oct 2009 17:39:37 +0000 (19:39 +0200)
For some reason, the value_t members "derive" and "absolute" had been spelled
in all capital letters, obviously resulting in a build error.

src/gmond.c

index 3357ea0..2ffc42a 100644 (file)
@@ -542,9 +542,9 @@ static int staging_entry_update (const char *host, const char *name, /* {{{ */
   else if (ds_type == DS_TYPE_GAUGE)
     se->vl.values[ds_index].gauge = value.gauge;
   else if (ds_type == DS_TYPE_DERIVE)
-    se->vl.values[ds_index].DERIVE += value.derive;
+    se->vl.values[ds_index].derive += value.derive;
   else if (ds_type == DS_TYPE_ABSOLUTE)
-    se->vl.values[ds_index].ABSOLUTE = value.absolute;
+    se->vl.values[ds_index].absolute = value.absolute;
 
   se->flags |= (0x01 << ds_index);