diff options
| author | Haibo Chen <haibo.chen@nxp.com> | 2026-03-06 17:04:48 +0800 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2026-03-10 11:12:52 +0100 |
| commit | 1eea46908c57abb7109b1fce024f366ae6c69c4f (patch) | |
| tree | 9e60d568130cd53c23b05cfb10fb465a04fca3a1 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | e3f5e0f22cfc2371e7471c9fd5b4da78f9df7c69 (diff) | |
| download | linux-1eea46908c57abb7109b1fce024f366ae6c69c4f.tar.gz linux-1eea46908c57abb7109b1fce024f366ae6c69c4f.zip | |
can: dev: keep the max bitrate error at 5%
Commit b360a13d44db ("can: dev: print bitrate error with two decimal
digits") changed calculation of the bit rate error from on-tenth of a
percent to on-hundredth of a percent, but forgot to adjust the scale of the
CAN_CALC_MAX_ERROR constant.
Keeping the existing logic unchanged: Only when the bitrate error exceeds
5% should an error be returned. Otherwise, simply output a warning log.
Fixes: b360a13d44db ("can: dev: print bitrate error with two decimal digits")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://patch.msgid.link/20260306-can-fix-v1-1-ac526cec6777@nxp.com
Cc: stable@kernel.org
[mkl: improve commit message]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
