mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-top: Print microseconds as "us"
Avoid unicode characters in the columns since it breaks formatting on non-unicode hosts.
This commit is contained in:
		
							parent
							
								
									a7c28d64ae
								
							
						
					
					
						commit
						70c314f254
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -349,7 +349,7 @@ static const char *print_time(char *buf, size_t len, uint64_t val)
 | 
			
		|||
	else if (val == (uint64_t)-2)
 | 
			
		||||
		snprintf(buf, len, "   +++ ");
 | 
			
		||||
	else if (val < 1000000llu)
 | 
			
		||||
		snprintf(buf, len, "%5.1fµs", val/1000.f);
 | 
			
		||||
		snprintf(buf, len, "%5.1fus", val/1000.f);
 | 
			
		||||
	else if (val < 1000000000llu)
 | 
			
		||||
		snprintf(buf, len, "%5.1fms", val/1000000.f);
 | 
			
		||||
	else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue