diff --git a/.travis.yml b/.travis.yml index 757c50922e..11a23185a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,17 +51,17 @@ env: - secure: KNfVmgjr2ZNsnvIfuhSkZ/kPrSTjn6WSDxEJt/3ioTCgeEGGvPL7UGonHHozZu3WzpzBVyUr60hXjb1nmb9dk6A3Dg05UPZmuS7NiHEA4Ub2zQKgefSbK0AJEhXSDg+bT16Hqxf1aZDaAEpMXGWTGLdpbKkGAW56UZu6LpOlOvoX9pFoSWAyzh1jKiYQsaKJ3eCncHKug5WqTVidOL/ENR6CAYyVLkgZ0yffwsCyVAnh14vri2lswPhPsPvMzYxtLQGkKkUOYkuPOZvBD7l5mp5Y4QLv86iKTFlOteim7yD+RpZZDFpb+3+OhRuj6jlBYWina33RKqBqjhhsayyYN/tYnPUefZhT+ALs8JfUaDXqMdgd7NQj8i5ZvrB+YsCTUVGrnPVbmEq8A4l/An5ushQpK5CrASiAC0K4dOBVT+U89QHtYWuE3ZOmSb518dlbH084ljypAj3JTQpUgRAAxn21VUMKb6QyIPsSPVEQ+zPQnaxBLhYVqafO7iX1tyvdr0mGhLZjXaaGwQu8Y/RoHdmRYcQAGn6zVFNuxWxTlr2OQ0fJ5l6/qBVyqZvqNirYa5hX8KtDu3dVMo5VOirIsoJTw75qTpGxYjhCNCb/woxtRvfX9xoT7tINWOxi2ucFfObSCsTv+BPeZeJiq7UDuFQYsQtWjNRp/iQNJ+rclpQ= after_script: # get tomcat7 to ./docker/app -- wget http://www-us.apache.org/dist/tomcat/tomcat-7/v7.0.84/bin/apache-tomcat-7.0.84.tar.gz +- wget http://www-us.apache.org/dist/tomcat/tomcat-7/v7.0.85/bin/apache-tomcat-7.0.85.tar.gz - mkdir ./docker/app -- mv apache-tomcat-7.0.84.tar.gz ./docker/app -- ls -l ./docker/app/apache-tomcat-7.0.84.tar.gz +- mv apache-tomcat-7.0.85.tar.gz ./docker/app +- ls -l ./docker/app/apache-tomcat-7.0.85.tar.gz - cd ./docker/app - echo `pwd` - echo `ls -l` -- tar -zxvf apache-tomcat-7.0.84.tar.gz +- tar -zxvf apache-tomcat-7.0.85.tar.gz - ls -l -- mv ./apache-tomcat-7.0.84/* ./ -- rm -rf ./apache-tomcat-7.0.84 +- mv ./apache-tomcat-7.0.85/* ./ +- rm -rf ./apache-tomcat-7.0.85 - cp ../../ScadaBR.war ./webapps - cp ../../ScadaLTS-UI/war/ScadaLTS.war ./webapps - ls -l ./webapps/ScadaLTS.war diff --git a/src/com/serotonin/mango/rt/RuntimeManager.java b/src/com/serotonin/mango/rt/RuntimeManager.java index 90045c900b..7f5b21f796 100644 --- a/src/com/serotonin/mango/rt/RuntimeManager.java +++ b/src/com/serotonin/mango/rt/RuntimeManager.java @@ -530,39 +530,40 @@ public void forcePointRead(int dataPointId) { } public long purgeDataPointValues() { - /* + PointValueDao pointValueDao = new PointValueDao(); long count = pointValueDao.deleteAllPointData(); pointValueDao.compressTables(); for (Integer id : dataPoints.keySet()) updateDataPointValuesRT(id); - return count;*/ + return count; //TODO not allow the deletion of data should be switched to a new database - return 0; + //return 0; } public long purgeDataPointValues(int dataPointId, int periodType, int periodCount) { long before = DateUtils.minus(System.currentTimeMillis(), periodType, periodCount); - return purgeDataPointValues(dataPointId, before); + long result = purgeDataPointValues(dataPointId, before); + return result; } public long purgeDataPointValues(int dataPointId) { - /*long count = new PointValueDao().deletePointValues(dataPointId); + long count = new PointValueDao().deletePointValues(dataPointId); updateDataPointValuesRT(dataPointId); - return count;*/ + return count; //TODO not allow the deletion of data should be switched to a new database - return 0; + //return 0; } public long purgeDataPointValues(int dataPointId, long before) { - /*long count = new PointValueDao().deletePointValuesBefore(dataPointId, + long count = new PointValueDao().deletePointValuesBefore(dataPointId, before); if (count > 0) updateDataPointValuesRT(dataPointId); - return count;*/ - return 0; + return count; + //return 0; } private void updateDataPointValuesRT(int dataPointId) {