Skip to content

Commit dfd8985

Browse files
committed
Merge pull request #2011 from Mezrin/development
Rearrange cron in UI to correspond to the actual order of work
2 parents 6788411 + 6d67a32 commit dfd8985

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

public/include/config/monitor_crons.inc.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
// Small helper array that may be used on some page controllers to
44
// fetch the crons we wish to monitor
5-
$aMonitorCrons = array('statistics','payouts','tables_cleanup','blockupdate','findblock','notifications','tickerupdate');
6-
75
switch ($config['payout_system']) {
8-
case 'pplns':
9-
$aMonitorCrons[] = $config['payout_system'] . '_payout';
10-
break;
11-
case 'pps':
12-
$aMonitorCrons[] = $config['payout_system'] . '_payout';
13-
break;
14-
case 'prop':
15-
$aMonitorCrons[] = 'proportional_payout';
16-
break;
6+
case 'pplns':
7+
$sPayoutSystem = $config['payout_system'] . '_payout';
8+
break;
9+
case 'pps':
10+
$sPayoutSystem = $config['payout_system'] . '_payout';
11+
break;
12+
case 'prop':
13+
$sPayoutSystem = 'proportional_payout';
14+
break;
1715
}
16+
17+
$aMonitorCrons = array('statistics','tickerupdate','notifications','tables_cleanup','findblock',$sPayoutSystem,'blockupdate','payouts');

0 commit comments

Comments
 (0)