Add support for older DMI formats on Linux.
This commit is contained in:
parent
05e6f66169
commit
3b8d081c8c
5 changed files with 72 additions and 14 deletions
|
@ -38,6 +38,16 @@ static void dmi_get_header(dmi_header *h, uint8_t *data)
|
|||
} // namespace xmrig
|
||||
|
||||
|
||||
bool xmrig::DmiReader::decode(uint8_t *buf, const Cleanup &cleanup)
|
||||
{
|
||||
const bool rc = decode(buf);
|
||||
|
||||
cleanup();
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
bool xmrig::DmiReader::decode(uint8_t *buf)
|
||||
{
|
||||
if (!buf) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue