summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: efb7216)
raw | patch | inline | side by side (parent: efb7216)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 22 May 2009 14:54:21 +0000 (14:54 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 22 May 2009 14:54:21 +0000 (14:54 +0000) |
program/src/rrd_update.c | patch | blob | history |
index 2fe5b91156648adde07ba86f7ffc0595d61b36dc..5c607027fde0617cf608794f9252dc5005a7b0df 100644 (file)
--- a/program/src/rrd_update.c
+++ b/program/src/rrd_update.c
rate = pdp_new[ds_idx] / interval;
break;
case DST_GAUGE:
- errno = 0;
old_locale = setlocale(LC_NUMERIC, "C");
+ errno = 0;
pdp_new[ds_idx] =
strtod(updvals[ds_idx + 1], &endptr) * interval;
if (errno) {
rrd->ds_def[ds_idx].ds_nam),
RD_I_VAL, iv);
}
+ errno = 0;
if (rrd_write(rrd_file,
&(rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].
u_val), sizeof(rrd_value_t)) != sizeof(rrd_value_t)) {