Code

parsing absolute time should not send us 30,000 years into the future -- Tatsuki...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 14 Feb 2007 06:33:49 +0000 (06:33 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 14 Feb 2007 06:33:49 +0000 (06:33 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1002 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/parsetime.c

index 47ddbbfc7a3fe95bfccb54eb1e823e328b2958b6..919dd50b340d74ed8806c59af2e9ae88b0082aaf 100644 (file)
@@ -850,7 +850,7 @@ parsetime(const char *tspec, struct rrd_time_value *ptv)
              if ( ptv->tm.tm_hour == 30 ){
                ptv->tm.tm_hour = hour_sv;
               }
-             if ( ptv->tm.tm_hour == 30000 ){
+             if ( ptv->tm.tm_year == 30000 ){
                ptv->tm.tm_year = year_sv;
               }
            };