mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 00:33:33 -05:00
Compare commits
3 Commits
v6.20.0
...
5ac6d438fa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ac6d438fa | ||
|
|
e7de104d88 | ||
|
|
3b5e04b1b7 |
@@ -169,6 +169,12 @@ bool xmrig::Platform::isOnBatteryPower()
|
||||
return (status == "Discharging");
|
||||
}
|
||||
}
|
||||
std::ifstream f("/sys/class/power_supply/macsmc-battery/status");
|
||||
if (f.is_open()) {
|
||||
std::string status;
|
||||
f >> status;
|
||||
return (status == "Discharging");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define APP_ID "xmrig"
|
||||
#define APP_NAME "XMRig"
|
||||
#define APP_DESC "XMRig miner"
|
||||
#define APP_VERSION "6.20.0"
|
||||
#define APP_VERSION "6.20.1-dev"
|
||||
#define APP_DOMAIN "xmrig.com"
|
||||
#define APP_SITE "www.xmrig.com"
|
||||
#define APP_COPYRIGHT "Copyright (C) 2016-2023 xmrig.com"
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#define APP_VER_MAJOR 6
|
||||
#define APP_VER_MINOR 20
|
||||
#define APP_VER_PATCH 0
|
||||
#define APP_VER_PATCH 1
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# if (_MSC_VER >= 1930)
|
||||
|
||||
Reference in New Issue
Block a user