summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 44ac0e1)
raw | patch | inline | side by side (parent: 44ac0e1)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 28 Feb 2007 15:09:39 +0000 (16:09 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 28 Feb 2007 15:09:39 +0000 (16:09 +0100) |
src/load.c | patch | blob | history |
diff --git a/src/load.c b/src/load.c
index 4b36221375245f6012cba5618df101743ca67f9c..08766556f225ab600183a233f8144a30fd4a55eb 100644 (file)
--- a/src/load.c
+++ b/src/load.c
};
#if LOAD_HAVE_READ
-static void load_submit (double snum, double mnum, double lnum)
+static void load_submit (gauge_t snum, gauge_t mnum, gauge_t lnum)
{
value_t values[3];
value_list_t vl = VALUE_LIST_INIT;
values[2].gauge = lnum;
vl.values = values;
- vl.values_len = 3;
+ vl.values_len = STATIC_ARRAY_SIZE (values);
vl.time = time (NULL);
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "load");
- strcpy (vl.plugin_instance, "");
- strcpy (vl.type_instance, "");
plugin_dispatch_values ("load", &vl);
}
/* #endif HAVE_GETLOADAVG */
#elif defined(KERNEL_LINUX)
- double snum, mnum, lnum;
+ gauge_t snum, mnum, lnum;
FILE *loadavg;
char buffer[16];
/* #endif KERNEL_LINUX */
#elif defined(HAVE_LIBSTATGRAB)
- double snum, mnum, lnum;
+ gauge_t snum, mnum, lnum;
sg_load_stats *ls;
if ((ls = sg_get_load_stats ()) == NULL)