You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2013/07/04 18:40:00 UTC
git commit: updated refs/heads/master to 41fa79f
Updated Branches:
refs/heads/master b3aa11ca3 -> 41fa79f65
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.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/41fa79f6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/41fa79f6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/41fa79f6
Branch: refs/heads/master
Commit: 41fa79f65c8ee3828948dc642dd82f3dcf554968
Parents: b3aa11c
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Thu Jul 4 16:05:58 2013 +0200
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Thu Jul 4 18:39:03 2013 +0200
----------------------------------------------------------------------
server/src/com/cloud/network/NetworkManagerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/41fa79f6/server/src/com/cloud/network/NetworkManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/NetworkManagerImpl.java b/server/src/com/cloud/network/NetworkManagerImpl.java
index dac6a3a..810c242 100755
--- a/server/src/com/cloud/network/NetworkManagerImpl.java
+++ b/server/src/com/cloud/network/NetworkManagerImpl.java
@@ -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();