summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f287bfc)
raw | patch | inline | side by side (parent: f287bfc)
author | octo <octo> | |
Fri, 9 Jun 2006 20:05:12 +0000 (20:05 +0000) | ||
committer | octo <octo> | |
Fri, 9 Jun 2006 20:05:12 +0000 (20:05 +0000) |
Apparently seconds is what we get. I was assuming it was milliseconds for some
unknown reason..
unknown reason..
src/ntpd.c | patch | blob | history |
diff --git a/src/ntpd.c b/src/ntpd.c
index e6d0ae281e5285e273db50d91834a7d66c764e96..fc76a2459130619f47219b873b9e551df620201d 100644 (file)
--- a/src/ntpd.c
+++ b/src/ntpd.c
static char *time_delay_file = "ntpd/delay-%s.rrd";
/* used for `time_offset', `time_dispersion', and `delay' */
-static char *ms_ds_def[] =
+static char *sec_ds_def[] =
{
- "DS:ms:GAUGE:"COLLECTD_HEARTBEAT":-1000000:1000000",
+ "DS:seconds:GAUGE:"COLLECTD_HEARTBEAT":-1000000:1000000",
NULL
};
-static int ms_ds_num = 1;
+static int sec_ds_num = 1;
static char *frequency_offset_file = "ntpd/frequency_offset-%s.rrd";
static char *frequency_offset_ds_def[] =
return;
}
-static void ntpd_write_ms (char *host, char *inst, char *val, char *file)
+static void ntpd_write_sec (char *host, char *inst, char *val, char *file)
{
char buf[256];
int status;
return;
rrd_update_file (host, buf, val,
- ms_ds_def, ms_ds_num);
+ sec_ds_def, sec_ds_num);
}
static void ntpd_write_time_offset (char *host, char *inst, char *val)
{
- ntpd_write_ms (host, inst, val, time_offset_file);
+ ntpd_write_sec (host, inst, val, time_offset_file);
}
static void ntpd_write_time_dispersion (char *host, char *inst, char *val)
{
- ntpd_write_ms (host, inst, val, time_dispersion_file);
+ ntpd_write_sec (host, inst, val, time_dispersion_file);
}
static void ntpd_write_delay (char *host, char *inst, char *val)
{
- ntpd_write_ms (host, inst, val, time_delay_file);
+ ntpd_write_sec (host, inst, val, time_delay_file);
}
static void ntpd_write_frequency_offset (char *host, char *inst, char *val)