https://gitlab.synchro.net/main/sbbs/-/commit/4067f32824605ad984122488
Modified Files:
src/xpdev/genwrap.c
Log Message:
duration_estimate_to_[v]str(): Don't include ".0" suffix for value of zero
When a unit value > 1 was specified, we could get strings with extra "noise" (e.g. "0.0h" with the upcoming change to minutes_to_str()).
This does sort of ignore the 'precision' argument in this case, but we already do (provide no fraction) for exactly-divisible values (e.g. 60min = "1h"). So if we ever uses these functions to provide columns with aligned decimals, that might be a problem.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net