The millisecond to second calculation was done with a bit shift of 10.

This is in effect a division by 1024, while time in ms should be divided
by 1000. The difference of 24 adds up to about a 381 day difference
today. This confuses anybody checking the timestamps in the logs.
This commit is contained in:
Hugo Trippaers 2013-07-04 16:05:58 +02:00
parent b3aa11ca39
commit 41fa79f65c

View File

@ -2976,7 +2976,7 @@ public class NetworkManagerImpl extends ManagerBase implements NetworkManager, L
public void run() { public void run() {
try { try {
List<Long> shutdownList = new ArrayList<Long>(); List<Long> shutdownList = new ArrayList<Long>();
long currentTime = System.currentTimeMillis() >> 10; long currentTime = System.currentTimeMillis() / 1000 ;
HashMap<Long, Long> stillFree = new HashMap<Long, Long>(); HashMap<Long, Long> stillFree = new HashMap<Long, Long>();
List<Long> networkIds = _networksDao.findNetworksToGarbageCollect(); List<Long> networkIds = _networksDao.findNetworksToGarbageCollect();