Round check next time format to second.
This commit is contained in:
		
							parent
							
								
									93417dc0e8
								
							
						
					
					
						commit
						004f4c9ef2
					
				@ -45,7 +45,7 @@ func ServeWeb(port uint) *http.Server {
 | 
			
		||||
			return time.Duration(time.Duration(duration) * time.Second).String()
 | 
			
		||||
		},
 | 
			
		||||
		"sft": func(future time.Time) string {
 | 
			
		||||
			return time.Until(future).String()
 | 
			
		||||
			return time.Until(future).Round(time.Second).String()
 | 
			
		||||
		},
 | 
			
		||||
		"bf": func(b uint64) string {
 | 
			
		||||
			return bytefmt.ByteSize(b)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user