]> git.pld-linux.org Git - packages/apinger.git/commitdiff
- pass current timestamp to rrdtool. Maybe usefull when actual RRD update is delayed...
authorJacek Konieczny <jajcus@pld-linux.org>
Mon, 24 Apr 2006 09:00:28 +0000 (09:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apinger-rrd_timestamp.patch -> 1.1

apinger-rrd_timestamp.patch [new file with mode: 0644]

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.088353 seconds and 4 git commands to generate.