mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-21 04:48:14 -05:00
Compare commits
2 Commits
a0edacc340
...
v6.21.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5aa2c9042 | ||
|
|
fa35a32eee |
@@ -169,12 +169,6 @@ bool xmrig::Platform::isOnBatteryPower()
|
|||||||
return (status == "Discharging");
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#define APP_ID "xmrig"
|
#define APP_ID "xmrig"
|
||||||
#define APP_NAME "XMRig"
|
#define APP_NAME "XMRig"
|
||||||
#define APP_DESC "XMRig miner"
|
#define APP_DESC "XMRig miner"
|
||||||
#define APP_VERSION "6.21.1-dev"
|
#define APP_VERSION "6.21.1"
|
||||||
#define APP_DOMAIN "xmrig.com"
|
#define APP_DOMAIN "xmrig.com"
|
||||||
#define APP_SITE "www.xmrig.com"
|
#define APP_SITE "www.xmrig.com"
|
||||||
#define APP_COPYRIGHT "Copyright (C) 2016-2024 xmrig.com"
|
#define APP_COPYRIGHT "Copyright (C) 2016-2024 xmrig.com"
|
||||||
|
|||||||
Reference in New Issue
Block a user