dashboard: some cleanup, remove unused state

This commit is contained in:
Tanguy Pruvot 2018-04-29 18:41:12 +02:00
parent b22b599b3e
commit b517afb571

View file

@ -507,20 +507,13 @@ function cronstate2text($state)
}
}
//$state_block = $this->memcache->get('cronjob_block_state');
$state_main = $this->memcache->get('cronjob_main_state');
$state_main = (int) $this->memcache->get('cronjob_main_state');
$btc = getdbosql('db_coins', "symbol='BTC'");
if (!$btc) $btc = json_decode('{"id": 6, "balance": 0}');
echo '<span style="font-weight: bold; color: red;">';
for($i=0; $i<10; $i++)
{
// if($i != $state_block-1 && $state_block>0)
// {
// $state = $this->memcache->get("cronjob_block_state_$i");
// if($state) echo "block $i ";
// }
if($i != $state_main-1 && $state_main>0)
{
$state = $this->memcache->get("cronjob_main_state_$i");