- $GLOBALS['total_blocks'] = $data[0];
- $GLOBALS['total_reward'] = $data[1];
- $GLOBALS['total_hashes'] = $data[2];
- $GLOBALS['total_found'] = $data[3];
- $GLOBALS['hash_cycles'] = intval($data[4]);
- $GLOBALS['nonce'] = base64_decode($data[5]);
- $GLOBALS['root_hash'] = $data[7];
- $GLOBALS['found_hashes'] = unserialize(gzuncompress(base64_decode($data[8])));
+ $GLOBALS['total_blocks'] = $data[0];
+ $GLOBALS['total_reward'] = $data[1];
+ $GLOBALS['total_hashes'] = $data[2];
+ $GLOBALS['total_found'] = $data[3];
+ $GLOBALS['total_restarts'] = $data[4];
+ $GLOBALS['hash_cycles'] = intval($data[5]);
+ $GLOBALS['nonce'] = (float) base64_decode($data[6]);
+ $GLOBALS['root_hash'] = $data[8];
+ $GLOBALS['found_hashes'] = json_decode(gzuncompress(base64_decode($data[9])));