openbsd-ports/net/rrdtool/patches/patch-src_rrd_dump_c
2004-06-08 20:21:24 +00:00

15 lines
624 B
Plaintext

$OpenBSD: patch-src_rrd_dump_c,v 1.1 2004/06/08 20:21:24 danh Exp $
--- src/rrd_dump.c.orig 2004-04-06 17:38:13.000000000 -0400
+++ src/rrd_dump.c 2004-06-08 11:32:17.000000000 -0400
@@ -39,8 +39,8 @@ rrd_dump(int argc, char **argv)
#else
# error "Need strftime"
#endif
- printf("\t<lastupdate> %ld </lastupdate> <!-- %s -->\n\n",
- rrd.live_head->last_up,somestring);
+ printf("\t<lastupdate> %.0f </lastupdate> <!-- %s -->\n\n",
+ difftime(rrd.live_head->last_up, 0),somestring);
for(i=0;i<rrd.stat_head->ds_cnt;i++){
printf("\t<ds>\n");
printf("\t\t<name> %s </name>\n",rrd.ds_def[i].ds_nam);