Bug 480717

Summary: Low battery notification off-by-one error
Product: [Applications] kdeconnect Reporter: theodorettshaw
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED DUPLICATE    
Severity: minor CC: andrew.g.r.holmes, kdedev
Priority: NOR    
Version First Reported In: 23.08.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description theodorettshaw 2024-02-02 02:38:34 UTC
SUMMARY
***
My phone begins to complain / goes into some low-power state at 15% battery. When I'm sitting at my desk using my phone, I can sometimes see my phone tick down to 15% and at the same instant, KDE Connect gives me a notification in the system tray that my phone battery is down to 16%. So the timing is correct, but the battery that's reported on my desktop is 1% too high.
***


STEPS TO REPRODUCE
1. KDE connect phone to computer
2. Have phone tick down from 16% to 15% battery

OBSERVED RESULT
KDE Connect gives a notification in the system tray that the phone battery is low, only 16%

EXPECTED RESULT
KDE Connect gives a notification in the system tray that the phone battery is low, only 15%, matching the phone's report


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: linux 6.7.2.arch1-1
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 TraceyC 2024-02-06 21:16:00 UTC

*** This bug has been marked as a duplicate of bug 434291 ***