mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-29 06:54:27 -05:00
Compare commits
6 Commits
v6.21.1
...
2fca43617b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fca43617b | ||
|
|
dd782c7001 | ||
|
|
b49197f808 | ||
|
|
f9c4c57216 | ||
|
|
a5b8b85967 | ||
|
|
5ac6d438fa |
@@ -169,6 +169,12 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -609,6 +609,11 @@ bool xmrig::Client::parseLogin(const rapidjson::Value &result, int *code)
|
|||||||
|
|
||||||
parseExtensions(result);
|
parseExtensions(result);
|
||||||
|
|
||||||
|
if (!result.HasMember("job")) {
|
||||||
|
*code = 2;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const bool rc = parseJob(result["job"], code);
|
const bool rc = parseJob(result["job"], code);
|
||||||
m_jobs = 0;
|
m_jobs = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
#define APP_VERSION "6.21.2-dev"
|
||||||
#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"
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#define APP_VER_MAJOR 6
|
#define APP_VER_MAJOR 6
|
||||||
#define APP_VER_MINOR 21
|
#define APP_VER_MINOR 21
|
||||||
#define APP_VER_PATCH 1
|
#define APP_VER_PATCH 2
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# if (_MSC_VER >= 1930)
|
# if (_MSC_VER >= 1930)
|
||||||
|
|||||||
Reference in New Issue
Block a user