mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
FIX #1067
This commit is contained in:
parent
2a8b1c6128
commit
c2f6536d09
@ -123,7 +123,7 @@ if ($ui->smallletters('w', 2, 'get') == 'da' or (!$ui->smallletters('w', 2, 'get
|
||||
|
||||
$statsArray['gameserverActivePercent'] = ($statsArray['gameserverInstalled'] > 0) ? round($statsArray['gameserverActive'] / ($statsArray['gameserverInstalled'] / 100), 2) : 0;
|
||||
$statsArray['gameserverSlotsUsedPercent'] = ($statsArray['gameserverSlotsActive'] > 0) ? round($statsArray['gameserverSlotsUsed'] / ($statsArray['gameserverSlotsActive'] / 100), 2) : 0;
|
||||
$statsArray['gameserverCrashedPercent'] = ($statsArray['gameserverSlotsActive'] > 0) ? round($statsArray['gameserverNotRunning'] / ($statsArray['gameserverSlotsActive'] / 100), 2) : 0;
|
||||
$statsArray['gameserverCrashedPercent'] = ($statsArray['gameserverActive'] > 0) ? round($statsArray['gameserverNotRunning'] / ($statsArray['gameserverActive'] / 100), 2) : 0;
|
||||
$statsArray['gameserverTagPercent'] = ($statsArray['gameserverActive'] > 0) ? round($statsArray['gameserverNoTag'] / ($statsArray['gameserverActive'] / 100), 2) : 0;
|
||||
$statsArray['gameserverPasswordPercent'] = ($statsArray['gameserverActive'] > 0) ? round($statsArray['gameserverNoPassword'] / ($statsArray['gameserverActive'] / 100), 2) : 0;
|
||||
$statsArray['gameserverRuleBreakPercent'] = ($statsArray['gameserverActive'] > 0) ? round(($statsArray['gameserverNoTag'] + $statsArray['gameserverNoPassword']) / ($statsArray['gameserverActive'] / 100), 2) : 0;
|
||||
|
@ -87,7 +87,7 @@ if ($ui->smallletters('w', 2, 'get') == 'da' or (!$ui->smallletters('w', 2, 'get
|
||||
|
||||
$statsArray['gameserverActivePercent'] = ($statsArray['gameserverInstalled'] > 0) ? round($statsArray['gameserverActive'] / ($statsArray['gameserverInstalled'] / 100), 2) : 0;
|
||||
$statsArray['gameserverSlotsUsedPercent'] = ($statsArray['gameserverSlotsActive'] > 0) ? round($statsArray['gameserverSlotsUsed'] / ($statsArray['gameserverSlotsActive'] / 100), 2) : 0;
|
||||
$statsArray['gameserverCrashedPercent'] = ($statsArray['gameserverSlotsActive'] > 0) ? round($statsArray['gameserverNotRunning'] / ($statsArray['gameserverSlotsActive'] / 100), 2) : 0;
|
||||
$statsArray['gameserverCrashedPercent'] = ($statsArray['gameserverActive'] > 0) ? round($statsArray['gameserverNotRunning'] / ($statsArray['gameserverActive'] / 100), 2) : 0;
|
||||
$statsArray['gameserverRuleBreakPercent'] = ($statsArray['gameserverActive'] > 0) ? round(($statsArray['gameserverNoTag'] + $statsArray['gameserverNoPassword']) / ($statsArray['gameserverActive'] / 100), 2) : 0;
|
||||
|
||||
$statsArray['voiceserverActivePercent'] = ($statsArray['voiceserverInstalled'] > 0) ? round($statsArray['voiceserverActive'] / ($statsArray['voiceserverInstalled'] / 100), 2) : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user