mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-10 01:02:40 -05:00
Compare commits
4 Commits
v6.22.2
...
db8d8bfa17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db8d8bfa17 | ||
|
|
e8bbd134f9 | ||
|
|
cf86a1e05c | ||
|
|
5ac6d438fa |
@@ -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.22.2"
|
||||
#define APP_VERSION "6.22.3-dev"
|
||||
#define APP_DOMAIN "xmrig.com"
|
||||
#define APP_SITE "www.xmrig.com"
|
||||
#define APP_COPYRIGHT "Copyright (C) 2016-2024 xmrig.com"
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#define APP_VER_MAJOR 6
|
||||
#define APP_VER_MINOR 22
|
||||
#define APP_VER_PATCH 2
|
||||
#define APP_VER_PATCH 3
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# if (_MSC_VER >= 1930)
|
||||
|
||||
Reference in New Issue
Block a user