aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorshitao <[email protected]>2025-04-07 08:54:19 +0000
committerRafael J. Wysocki <[email protected]>2025-04-09 13:56:19 +0000
commit46d839adcc93ccc445f90866c31b2ed2785f0319 (patch)
tree60466bacdb49353aebca314c888feb1731788588 /tools/perf/scripts/python/event_analyzing_sample.py
parentLinux 6.15-rc1 (diff)
downloadkernel-46d839adcc93ccc445f90866c31b2ed2785f0319.tar.gz
kernel-46d839adcc93ccc445f90866c31b2ed2785f0319.zip
ACPI: battery: Round capacity percengate to closest integer
If the difference between capacity_now and full_capacity is within 0.5%, 100% is arguably a better number to expose than 99% and exposing the latter may confuse the user to think that there's something wrong with the battery. Round the capacity percentage to the closest integer value to avoid the confusion. Signed-off-by: shitao <[email protected]> Link: https://patch.msgid.link/[email protected] [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions