]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
working on a fix for issue #521
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 31 Jul 2014 13:40:26 +0000 (15:40 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 31 Jul 2014 13:40:26 +0000 (15:40 +0200)
src/rrd_daemon.c

index aa4df9f1835a9f2898bc27bb94310d835eca79e5..886e65d8b6d3aa9839940e8766e3bd40a324d42e 100644 (file)
@@ -1512,7 +1512,7 @@ static int handle_request_update (HANDLER_PROTO) /* {{{ */
 
     /* make sure update time is always moving forward. We use double here since
        update does support subsecond precision for timestamps ... */
-    if ( ( rrd_strtoding( value, &eostamp, &stamp, "error while parsing time stamp" ) != 2 ) || *eostamp != ':')
+    if ( ( rrd_strtoding( value, &eostamp, &stamp, "error while parsing time stamp" ) != 1 ) || *eostamp != ':')
     {
       pthread_mutex_unlock(&cache_lock);
       return send_response(sock, RESP_ERR,