]> git.pld-linux.org Git - packages/apinger.git/blobdiff - apinger-rrd_timestamp.patch
- pass current timestamp to rrdtool. Maybe usefull when actual RRD update is delayed...
[packages/apinger.git] / apinger-rrd_timestamp.patch
diff --git a/apinger-rrd_timestamp.patch b/apinger-rrd_timestamp.patch
new file mode 100644 (file)
index 0000000..32a09e9
--- /dev/null
@@ -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){
This page took 0.086183 seconds and 4 git commands to generate.