Author: jajcus Date: Mon Apr 24 09:00:33 2006 GMT Module: SOURCES Tag: HEAD ---- Log message: - pass current timestamp to rrdtool. Maybe usefull when actual RRD update is delayed (e.g. provided rrdtool executable is a wrapper sending commands via network)
---- Files affected: SOURCES: apinger-rrd_timestamp.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/apinger-rrd_timestamp.patch diff -u /dev/null SOURCES/apinger-rrd_timestamp.patch:1.1 --- /dev/null Mon Apr 24 11:00:33 2006 +++ SOURCES/apinger-rrd_timestamp.patch Mon Apr 24 11:00:28 2006 @@ -0,0 +1,13 @@ +Index: apinger/src/rrd.c +=================================================================== +--- apinger/src/rrd.c (revision 1736) ++++ apinger/src/rrd.c (revision 1737) +@@ -142,7 +142,7 @@ + if (rrdtool_pipe==NULL) + if (rrd_init()) return; + filename=subst_macros(t->config->rrd_filename,t,NULL,0); +- ret=rrd_write("update %s -t loss:delay N",filename); ++ ret=rrd_write("update %s -t loss:delay %li",filename,(long)time(NULL)); + if (ret>0){ + if (t->upsent > t->config->avg_loss_delay_samples + +t->config->avg_loss_samples){ ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit