Revert change to dump loop condition
authorJeremy Tan <[email protected]>
Fri, 6 Sep 2013 12:01:02 +0000 (20:01 +0800)
committerJeremy Tan <[email protected]>
Fri, 6 Sep 2013 12:01:02 +0000 (20:01 +0800)
server/sensor.c

index ecbc584..c0c3ab1 100644 (file)
@@ -296,7 +296,7 @@ void Sensor_Handler(FCGIContext *context, char * params)
                                        }
 
                                }
-                               while (amount_read > 0);
+                               while (amount_read == SENSOR_QUERYBUFSIZ);
                        pthread_mutex_unlock(&(sensor->mutex));
                        // end critical section
                        break;

UCC git Repository :: git.ucc.asn.au