]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Here is a patch that fixes a serious endless loop problem on 32 bit
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 11 Nov 2010 16:06:55 +0000 (16:06 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 11 Nov 2010 16:06:55 +0000 (16:06 +0000)
commit0da68b21b68da9ee35513501ae2fe2790baa8b81
tree7bde6dcd7ddb6819850360e273dc00aa119f7e03
parentca73292a2e5ae0d85ad0c98d5d5084a0619a62d1
Here is a patch that fixes a serious endless loop problem on 32 bit
architectures near the timestamp 2^31 (oh yes - y2k038 is showing its ugly
face) when using the graph command(s). Once the endtime of a graph is
above the mentioned timestamp, mktime always returns -1 (and correctly
so), causing some loops to loop forever. The patch fixes this, causing
some strange output, but there is no other sane way to handle this (expect
by switching to a 64 bit platform). -- Peter Stamfest

git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2146 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c