zui icon indicating copy to clipboard operation
zui copied to clipboard

Tiny duration shown as "Not available" in correlations view

Open philrz opened this issue 8 months ago • 0 comments

Repro is with Zui commit b4ed51d.

The attached test data conn.log.gz contains two Zeek conn records. As shown in the attached video, when the duration value is large, the "Duration" line printed below the correlations view shows an accurate approximation of the the value (specifically, 21 minutes 9 seconds whereas the full-precision original value was 21m9.512465s). However, for the other record where the original value is 1us, the value shown below the correlations view is Not available, which is incorrect.

https://github.com/brimdata/zed/assets/5934157/6db713ab-4dfc-46f3-8d7d-81bd21320a4f

I poked through the code and I see the math that's triggering the problem, but I'm not certain yet of the best fix.

philrz avatar Jun 18 '24 17:06 philrz