Rearrange cron in UI to correspond to the actual order of work

This commit is contained in:
VictorMezrin 2014-03-25 22:25:07 +04:00
parent 67884118c4
commit 6d67a32c59

View File

@ -2,16 +2,16 @@
// Small helper array that may be used on some page controllers to
// fetch the crons we wish to monitor
$aMonitorCrons = array('statistics','payouts','tables_cleanup','blockupdate','findblock','notifications','tickerupdate');
switch ($config['payout_system']) {
case 'pplns':
$aMonitorCrons[] = $config['payout_system'] . '_payout';
break;
case 'pps':
$aMonitorCrons[] = $config['payout_system'] . '_payout';
break;
case 'prop':
$aMonitorCrons[] = 'proportional_payout';
break;
case 'pplns':
$sPayoutSystem = $config['payout_system'] . '_payout';
break;
case 'pps':
$sPayoutSystem = $config['payout_system'] . '_payout';
break;
case 'prop':
$sPayoutSystem = 'proportional_payout';
break;
}
$aMonitorCrons = array('statistics','tickerupdate','notifications','tables_cleanup','findblock',$sPayoutSystem,'blockupdate','payouts');