From: oetiker Date: Thu, 11 Nov 2010 16:06:55 +0000 (+0000) Subject: Here is a patch that fixes a serious endless loop problem on 32 bit X-Git-Url: https://git.octo.it/?a=commitdiff_plain;ds=sidebyside;h=9c9cf60a757fbbd2846d2a71473c2c42cdabdaa4;hp=9c9cf60a757fbbd2846d2a71473c2c42cdabdaa4;p=rrdtool.git 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/trunk/program@2146 a5681a0c-68f1-0310-ab6d-d61299d08faa ---