summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a75dbce)
raw | patch | inline | side by side (parent: a75dbce)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 13 Jan 2007 17:23:15 +0000 (18:23 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 13 Jan 2007 17:23:15 +0000 (18:23 +0100) |
src/load.c | patch | blob | history |
diff --git a/src/load.c b/src/load.c
index bff629dcb06cb9ad6a1c2255c02d2fff65a9fd0a..e715dcf951bdc393a96ab1ebc471449659943a46 100644 (file)
--- a/src/load.c
+++ b/src/load.c
vl.values = values;
vl.values_len = 3;
- strcpy (vl.host, "localhost"); /* FIXME */
+ vl.time = time (NULL);
+ /* FIXME: do this globally */
+ if (gethostname (vl.host, sizeof (vl.host)) != 0)
+ {
+ syslog (LOG_ERR, "load plugin: gethostname failed: %s",
+ strerror (errno));
+ return;
+ }
strcpy (vl.plugin, "load");
strcpy (vl.plugin_instance, "");
strcpy (vl.type_instance, "");