Resolved bug where external sensors data were deleted
Former-commit-id: 64ef329e3f1924629fe760cc3df8f324f67c04a9
This commit is contained in:
parent
9ee2a788ce
commit
fa719a8b18
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,6 @@
|
||||||
<classpathentry kind="lib" path="external/marytts-5.1.2/lib/voice-cmu-slt-hsmm-5.1.2.jar"/>
|
<classpathentry kind="lib" path="external/marytts-5.1.2/lib/voice-cmu-slt-hsmm-5.1.2.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/Ab.jar"/>
|
<classpathentry kind="lib" path="lib/Ab.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/commons-math3-3.5.jar"/>
|
<classpathentry kind="lib" path="lib/commons-math3-3.5.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/jSerialComm-1.3.4.jar"/>
|
|
||||||
<classpathentry kind="lib" path="lib/marytts-client-5.1.2-jar-with-dependencies.jar"/>
|
<classpathentry kind="lib" path="lib/marytts-client-5.1.2-jar-with-dependencies.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/marytts-runtime-5.1.2-jar-with-dependencies.jar"/>
|
<classpathentry kind="lib" path="lib/marytts-runtime-5.1.2-jar-with-dependencies.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/pi4j-core-1.0.jar"/>
|
<classpathentry kind="lib" path="lib/pi4j-core-1.0.jar"/>
|
||||||
|
|
@ -24,6 +23,7 @@
|
||||||
<classpathentry kind="lib" path="lib/java-speech-api-master.jar"/>
|
<classpathentry kind="lib" path="lib/java-speech-api-master.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/sphinx4-core.jar"/>
|
<classpathentry kind="lib" path="lib/sphinx4-core.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/sqlite-jdbc-3.8.11.2_HACKED_FOR_RPI.jar"/>
|
<classpathentry kind="lib" path="lib/sqlite-jdbc-3.8.11.2_HACKED_FOR_RPI.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/jSerialComm-1.3.10.jar"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry combineaccessrules="false" kind="src" path="/zutil-java"/>
|
<classpathentry combineaccessrules="false" kind="src" path="/zutil-java"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ public class SensorDataCleanupDaemon implements HalDaemon {
|
||||||
//logger.fine("The sensor is of type: " + sensor.getDeviceData().getClass().getName()); // this will instantiate the external sensor data
|
//logger.fine("The sensor is of type: " + sensor.getDeviceData().getClass().getName()); // this will instantiate the external sensor data
|
||||||
if(sensor.getUser().isExternal()){
|
if(sensor.getUser().isExternal()){
|
||||||
cleanupExternalSensorData(sensor.getId(), TimeUtility.FIVE_MINUTES_IN_MS, TimeUtility.DAY_IN_MS);
|
cleanupExternalSensorData(sensor.getId(), TimeUtility.FIVE_MINUTES_IN_MS, TimeUtility.DAY_IN_MS);
|
||||||
cleanupExternalSensorData(sensor.getId(), TimeUtility.DAY_IN_MS, TimeUtility.WEEK_IN_MS);
|
cleanupExternalSensorData(sensor.getId(), TimeUtility.HOUR_IN_MS, TimeUtility.WEEK_IN_MS);
|
||||||
}else{
|
}else{
|
||||||
cleanupInternalSensorData(sensor.getId(), TimeUtility.HOUR_IN_MS, TimeUtility.FIVE_MINUTES_IN_MS, TimeUtility.DAY_IN_MS);
|
cleanupInternalSensorData(sensor.getId(), TimeUtility.HOUR_IN_MS, TimeUtility.FIVE_MINUTES_IN_MS, TimeUtility.DAY_IN_MS);
|
||||||
cleanupInternalSensorData(sensor.getId(), TimeUtility.DAY_IN_MS, TimeUtility.HOUR_IN_MS, TimeUtility.WEEK_IN_MS);
|
cleanupInternalSensorData(sensor.getId(), TimeUtility.DAY_IN_MS, TimeUtility.HOUR_IN_MS, TimeUtility.WEEK_IN_MS);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue