[Optimize] Switched calls to username from id

This commit is contained in:
Neozonz 2014-01-20 16:01:42 -08:00
parent 4d845c7c73
commit 9e8841b1df

View File

@ -8,10 +8,11 @@ $api->isActive();
// Check user token
$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']);
$username = $user->getUsername($user_id)
// Output JSON format
$data = array(
'mine' => $statistics->getHourlyHashrateByAccount($id),
'mine' => $statistics->getHourlyHashrateByAccount($username),
'pool' => $statistics->getHourlyHashrateByPool()
);