|
@@ -276,7 +276,7 @@ void halIntFlow(void) {
|
|
|
clock_gettime(CLOCK_REALTIME, &flowTimestep[flowIndex]);
|
|
|
timespec_diff(&flowTimestep[((flowIndex + 1) % 2)], &flowTimestep[flowIndex], &deltaT);
|
|
|
|
|
|
- if (sqlLogFlow(1, halGetFlow(), deltaT.tv_sec * 1000 + deltaT.tv_nsec/1000000)) {
|
|
|
+ if (sqlLogFlow(2, halGetFlow()*1000, deltaT.tv_sec * 1000 + deltaT.tv_nsec/1000000)) {
|
|
|
logger_error("hal.cpp: could not log flow to database!");
|
|
|
return;
|
|
|
}
|