diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-10 16:55:25 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-10 16:55:25 +1200 |
commit | 223962059fd71881b3f210391cd4414afc3750e9 (patch) | |
tree | 27d62d4ad9d9e691ac7dd09eddaccff304fc6aa8 /src/org/traccar/database/DataManager.java | |
parent | 7ddfed27e9135a074b292289bc7ed414485ddf8a (diff) | |
download | trackermap-server-223962059fd71881b3f210391cd4414afc3750e9.tar.gz trackermap-server-223962059fd71881b3f210391cd4414afc3750e9.tar.bz2 trackermap-server-223962059fd71881b3f210391cd4414afc3750e9.zip |
Fix Java code analytics issues
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 78f1b4109..abc48f063 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -305,7 +305,7 @@ public class DataManager { } public void clearPositionsHistory() throws SQLException { - int historyDays = config.getInteger("database.positionsHistoryDays"); + long historyDays = config.getInteger("database.positionsHistoryDays"); if (historyDays != 0) { QueryBuilder.create(dataSource, getQuery("database.deletePositions")) .setDate("serverTime", new Date(System.currentTimeMillis() - historyDays * 24 * 3600 * 1000)) |