mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Revert "Fix to avoid a compile error due to float to int truncation with GCCGO"
This reverts commit 967a42f116.
Signed-off-by: Tatsushi Inagaki <e29253@jp.ibm.com>
Roll back the change to fix the parameter of HumanSize from int64 to float64
			
			
This commit is contained in:
		
							parent
							
								
									967a42f116
								
							
						
					
					
						commit
						36560a76d7
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -23,9 +23,9 @@ func TestHumanSize(t *testing.T) {
 | 
			
		|||
	assertEquals(t, "1 MB", HumanSize(1000000))
 | 
			
		||||
	assertEquals(t, "1.049 MB", HumanSize(1048576))
 | 
			
		||||
	assertEquals(t, "2 MB", HumanSize(2*MB))
 | 
			
		||||
	assertEquals(t, "3.42 GB", HumanSize(int64(float64(3.42*GB))))
 | 
			
		||||
	assertEquals(t, "5.372 TB", HumanSize(int64(float64(5.372*TB))))
 | 
			
		||||
	assertEquals(t, "2.22 PB", HumanSize(int64(float64(2.22*PB))))
 | 
			
		||||
	assertEquals(t, "3.42 GB", HumanSize(3.42*GB))
 | 
			
		||||
	assertEquals(t, "5.372 TB", HumanSize(5.372*TB))
 | 
			
		||||
	assertEquals(t, "2.22 PB", HumanSize(2.22*PB))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func TestFromHumanSize(t *testing.T) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue