From ca25d536e144f6bd4c4cdc60b2d5380c70f91304 Mon Sep 17 00:00:00 2001 From: Serena Date: Fri, 27 Jan 2023 14:00:12 +0300 Subject: [PATCH] fix typo + remove branch from CI --- .github/workflows/build.yml | 1 - Common/Battery/AppleBatteryClient.m | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1fd25d4f45..48937e2874 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,6 @@ on: - master # For testing. - actions - - serena/battery-stuff tags: - "v*.*" paths-ignore: diff --git a/Common/Battery/AppleBatteryClient.m b/Common/Battery/AppleBatteryClient.m index ab65483348..6fbb29e8d5 100644 --- a/Common/Battery/AppleBatteryClient.m +++ b/Common/Battery/AppleBatteryClient.m @@ -29,7 +29,7 @@ void _powerSourceRunLoopCallback(void * __unused ctx) { // You may ask, // "Why an entire class? // Why not just call the UIDevice/IOKitPowerSource functions every time getCurrentBatteryCapacity() is called?" -// Well, calling the UIDevice/IOKitPowerSource very frequently is expensive +// Well, calling the UIDevice/IOKitPowerSource functions very frequently (every second, it seems?) is expensive // So, instead, I made a class with a cached batteryLevel property // that only gets set when it needs to. @implementation AppleBatteryClient