From 056387bc2729014be8e22b72110b41bd9ee7267e Mon Sep 17 00:00:00 2001 From: Neozonz Date: Mon, 20 Jan 2014 16:01:42 -0800 Subject: [PATCH] [Optimize] Switched calls to username from id --- public/include/pages/api/gethourlyhashrates.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/include/pages/api/gethourlyhashrates.inc.php b/public/include/pages/api/gethourlyhashrates.inc.php index 54112325..5270059c 100644 --- a/public/include/pages/api/gethourlyhashrates.inc.php +++ b/public/include/pages/api/gethourlyhashrates.inc.php @@ -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() );