mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
dashboard: some cleanup, remove unused state
This commit is contained in:
parent
b22b599b3e
commit
b517afb571
1 changed files with 1 additions and 8 deletions
|
@ -507,20 +507,13 @@ function cronstate2text($state)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//$state_block = $this->memcache->get('cronjob_block_state');
|
$state_main = (int) $this->memcache->get('cronjob_main_state');
|
||||||
$state_main = $this->memcache->get('cronjob_main_state');
|
|
||||||
$btc = getdbosql('db_coins', "symbol='BTC'");
|
$btc = getdbosql('db_coins', "symbol='BTC'");
|
||||||
if (!$btc) $btc = json_decode('{"id": 6, "balance": 0}');
|
if (!$btc) $btc = json_decode('{"id": 6, "balance": 0}');
|
||||||
|
|
||||||
echo '<span style="font-weight: bold; color: red;">';
|
echo '<span style="font-weight: bold; color: red;">';
|
||||||
for($i=0; $i<10; $i++)
|
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)
|
if($i != $state_main-1 && $state_main>0)
|
||||||
{
|
{
|
||||||
$state = $this->memcache->get("cronjob_main_state_$i");
|
$state = $this->memcache->get("cronjob_main_state_$i");
|
||||||
|
|
Loading…
Add table
Reference in a new issue