diff options
author | shitao <shitao@kylinos.cn> | 2025-04-07 16:54:19 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-04-09 15:56:19 +0200 |
commit | 46d839adcc93ccc445f90866c31b2ed2785f0319 (patch) | |
tree | 60466bacdb49353aebca314c888feb1731788588 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 0af2f6be1b4281385b618cb86ad946eded089ac8 (diff) |
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 <shitao@kylinos.cn>
Link: https://patch.msgid.link/20250407085419.494234-1-shitao@kylinos.cn
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions