Fix to avoid a compilation error of size_test.go with GCCGO due to float to int truncation
Signed-off-by: Tatsushi Inagaki <e29253@jp.ibm.com>
This commit is contained in:
		
							parent
							
								
									7d92b1230e
								
							
						
					
					
						commit
						e5b1c19379
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -39,7 +39,7 @@ var binaryAbbrs = []string{"B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", | ||||||
| 
 | 
 | ||||||
| // HumanSize returns a human-readable approximation of a size | // HumanSize returns a human-readable approximation of a size | ||||||
| // using SI standard (eg. "44kB", "17MB") | // using SI standard (eg. "44kB", "17MB") | ||||||
| func HumanSize(size int64) string { | func HumanSize(size float64) string { | ||||||
| 	return intToString(float64(size), 1000.0, decimapAbbrs) | 	return intToString(float64(size), 1000.0, decimapAbbrs) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue