diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2017-11-11 16:19:10 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2017-11-11 16:27:19 +0200 |
commit | 47c0948ab0d9ce12f5c25586909ed611395f0fe4 (patch) | |
tree | a513f2803926632f8a61fd371c0463d111b6c80e /translations | |
parent | Remove unused variables and fix typos in comments (diff) | |
download | monero-47c0948ab0d9ce12f5c25586909ed611395f0fe4.tar.xz |
Implement missing miner functions on FreeBSD
cryptonote::miner::get_system_times(): Fetch the system's total and
idle time using sysctl kern.cp_time.
cryptonote::miner::get_process_time(): Use the same implementation as
Linux and OSX, the times(3) function conforms to POSIX.1 and is
available on FreeBSD.
cryptonote::miner::on_battery_power(): Try to fetch the battery status
using sysctl hw.acpi.acline. If that fails (if ACPI is not enabled on
the system), then try querying /dev/apm.
Diffstat (limited to 'translations')
0 files changed, 0 insertions, 0 deletions