feat: make logview include precision for small tdiff values
This commit is contained in:
		
							parent
							
								
									2c68c2a00c
								
							
						
					
					
						commit
						5ebd6353b3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -74,7 +74,7 @@ pub fn render(self: *Self, theme: *const Widget.Theme) bool { | |||
| 
 | ||||
| fn output_tdiff(self: *Self, tdiff: i64) !void { | ||||
|     const msi = @divFloor(tdiff, time.us_per_ms); | ||||
|     if (msi == 0) { | ||||
|     if (msi < 10) { | ||||
|         const d: f64 = @floatFromInt(tdiff); | ||||
|         const ms = d / time.us_per_ms; | ||||
|         _ = try self.plane.print("{d:6.2} ▏", .{ms}); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue