aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2017-11-11 16:19:10 +0200
committerVasil Dimov <vd@FreeBSD.org>2017-11-11 16:27:19 +0200
commit47c0948ab0d9ce12f5c25586909ed611395f0fe4 (patch)
treea513f2803926632f8a61fd371c0463d111b6c80e /CMakeLists.txt
parentRemove unused variables and fix typos in comments (diff)
downloadmonero-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 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions