aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/cryptonote_basic_impl.cpp
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 /src/cryptonote_basic/cryptonote_basic_impl.cpp
parentfdb5bd161d9754ca2aa4c50116e55b9233e339c1 (diff)
downloadmonzero-core-47c0948ab0d9ce12f5c25586909ed611395f0fe4.tar.gz
monzero-core-47c0948ab0d9ce12f5c25586909ed611395f0fe4.tar.xz
monzero-core-47c0948ab0d9ce12f5c25586909ed611395f0fe4.zip
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 'src/cryptonote_basic/cryptonote_basic_impl.cpp')
0 files changed, 0 insertions, 0 deletions