#!/usr/bin/php getnetworkhashps() / 1000; $dPoolHashrate = $statistics->getCurrentHashrate(); $iPercentage = round(100 / $dNetworkHashrate * $dPoolHashrate, 0); if ($iPercentage >= 51) { echo 'Your pool has ' . $iPercentage . '% of the network hashrate. Registrations will be disabled.' . PHP_EOL; $setting->setValue('lock_registration', 1); } else { $setting->setValue('lock_registration', 0); }