RockteMQ-AI commented on issue #4492: URL: https://github.com/apache/rocketmq-dashboard/issues/4492#issuecomment-5709738562
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported issue has been verified against the current codebase. **Root Cause:** In `web/src/utils/format.ts`, the `formatDelay` function computes `seconds = remaining % 60` where `remaining` is the result of floating-point modulo operations. When `totalSeconds` contains a fractional part (e.g. `65.9`), the seconds segment retains the decimal precision, producing output like `5.9s` / `5.9秒`. **Fix:** Truncate `totalSeconds` to an integer at the entry of the function (e.g. `totalSeconds = Math.floor(totalSeconds)`) or apply `Math.floor()` to the `seconds` computation. **Impact:** Delay/lag labels across the dashboard UI that display sub-second precision noise. **Severity:** Low — cosmetic formatting defect, no data or logic impact. --- *Automated evaluation by github-manager-bot* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
