mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	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() {
 | 
					        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();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user