mirror of https://github.com/apache/cloudstack.git
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:
parent
b3aa11ca39
commit
41fa79f65c
|
|
@ -2976,7 +2976,7 @@ public class NetworkManagerImpl extends ManagerBase implements NetworkManager, L
|
|||
public void run() {
|
||||
try {
|
||||
List<Long> shutdownList = new ArrayList<Long>();
|
||||
long currentTime = System.currentTimeMillis() >> 10;
|
||||
long currentTime = System.currentTimeMillis() / 1000 ;
|
||||
HashMap<Long, Long> stillFree = new HashMap<Long, Long>();
|
||||
|
||||
List<Long> networkIds = _networksDao.findNetworksToGarbageCollect();
|
||||
|
|
|
|||
Loading…
Reference in New Issue