X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_graph_helper.c;h=d59625b98004706dd06a4b8ff6e72b6d22aca9cc;hb=2593a69e9485cf67c9654a2667f85971275004fe;hp=4373fd0ca34b353c9cb684334df0ab6795782529;hpb=73c400314f176d4ac458b2ed357c276ee4080c79;p=rrdtool.git diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 4373fd0..d59625b 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -445,7 +445,8 @@ int rrd_parse_shift( return 1; } } else { - long time_tmp = 0; + long time_tmp = 0; + rrd_clear_error(); i = 0; sscanf(&line[*eaten], "%li%n", &time_tmp, &i); @@ -607,12 +608,13 @@ int rrd_parse_PVHLAST( default:; } } else { - long time_tmp = 0; + long time_tmp = 0; + dprintf("- it is not an existing vname\n"); switch (gdp->gf) { case GF_VRULE: k = 0; - sscanf(tmpstr, "%li%n",&time_tmp , &k); + sscanf(tmpstr, "%li%n", &time_tmp, &k); gdp->xrule = time_tmp; if (((j != 0) && (k == j)) || ((j == 0) && (k == i))) { dprintf("- found time: %li\n", gdp->xrule);