Merge pull request #1605 from MPOS/thash-modifier
[ADDED] THash/second modifier
This commit is contained in:
commit
823f694638
@ -148,21 +148,21 @@ $aSettings['statistics'][] = array(
|
|||||||
);
|
);
|
||||||
$aSettings['statistics'][] = array(
|
$aSettings['statistics'][] = array(
|
||||||
'display' => 'Pool Hashrate Modifier', 'type' => 'select',
|
'display' => 'Pool Hashrate Modifier', 'type' => 'select',
|
||||||
'options' => array( '1' => 'KH/s', '0.001' => 'MH/s', '0.000001' => 'GH/s' ),
|
'options' => array( '1' => 'KH/s', '0.001' => 'MH/s', '0.000001' => 'GH/s', '0.000000001' => 'TH/s' ),
|
||||||
'default' => '1',
|
'default' => '1',
|
||||||
'name' => 'statistics_pool_hashrate_modifier', 'value' => $setting->getValue('statistics_pool_hashrate_modifier'),
|
'name' => 'statistics_pool_hashrate_modifier', 'value' => $setting->getValue('statistics_pool_hashrate_modifier'),
|
||||||
'tooltip' => 'Auto-adjust displayed pool hashrates to a certain limit.'
|
'tooltip' => 'Auto-adjust displayed pool hashrates to a certain limit.'
|
||||||
);
|
);
|
||||||
$aSettings['statistics'][] = array(
|
$aSettings['statistics'][] = array(
|
||||||
'display' => 'Network Hashrate Modifier', 'type' => 'select',
|
'display' => 'Network Hashrate Modifier', 'type' => 'select',
|
||||||
'options' => array( '1' => 'KH/s', '0.001' => 'MH/s', '0.000001' => 'GH/s' ),
|
'options' => array( '1' => 'KH/s', '0.001' => 'MH/s', '0.000001' => 'GH/s', '0.000000001' => 'TH/s' ),
|
||||||
'default' => '1',
|
'default' => '1',
|
||||||
'name' => 'statistics_network_hashrate_modifier', 'value' => $setting->getValue('statistics_network_hashrate_modifier'),
|
'name' => 'statistics_network_hashrate_modifier', 'value' => $setting->getValue('statistics_network_hashrate_modifier'),
|
||||||
'tooltip' => 'Auto-adjust displayed network hashrates to a certain limit.'
|
'tooltip' => 'Auto-adjust displayed network hashrates to a certain limit.'
|
||||||
);
|
);
|
||||||
$aSettings['statistics'][] = array(
|
$aSettings['statistics'][] = array(
|
||||||
'display' => 'Personal Hashrate Modifier', 'type' => 'select',
|
'display' => 'Personal Hashrate Modifier', 'type' => 'select',
|
||||||
'options' => array( '1' => 'KH/s', '0.001' => 'MH/s', '0.000001' => 'GH/s' ),
|
'options' => array( '1' => 'KH/s', '0.001' => 'MH/s', '0.000001' => 'GH/s', '0.000000001' => 'TH/s' ),
|
||||||
'default' => '1',
|
'default' => '1',
|
||||||
'name' => 'statistics_personal_hashrate_modifier', 'value' => $setting->getValue('statistics_personal_hashrate_modifier'),
|
'name' => 'statistics_personal_hashrate_modifier', 'value' => $setting->getValue('statistics_personal_hashrate_modifier'),
|
||||||
'tooltip' => 'Auto-adjust displayed personal hashrates to a certain limit.'
|
'tooltip' => 'Auto-adjust displayed personal hashrates to a certain limit.'
|
||||||
|
|||||||
@ -49,7 +49,7 @@ if (! $statistics_ajax_refresh_interval = $setting->getValue('statistics_ajax_re
|
|||||||
if (! $statistics_ajax_long_refresh_interval = $setting->getValue('statistics_ajax_long_refresh_interval')) $statistics_ajax_long_refresh_interval = 10;
|
if (! $statistics_ajax_long_refresh_interval = $setting->getValue('statistics_ajax_long_refresh_interval')) $statistics_ajax_long_refresh_interval = 10;
|
||||||
|
|
||||||
// Small helper array
|
// Small helper array
|
||||||
$aHashunits = array( '1' => 'KH/s', '0.001' => 'MH/s', '0.000001' => 'GH/s' );
|
$aHashunits = array( '1' => 'KH/s', '0.001' => 'MH/s', '0.000001' => 'GH/s', '0.000000001' => 'TH/s' );
|
||||||
|
|
||||||
// Global data for Smarty
|
// Global data for Smarty
|
||||||
$aGlobal = array(
|
$aGlobal = array(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user