[Optimize] Switched calls to username from id
This commit is contained in:
parent
4d845c7c73
commit
9e8841b1df
@ -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()
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user