adding share-rate to getuserstatus API

This commit is contained in:
Sebastian Grewe 2013-09-13 09:35:14 +02:00
parent e0b1db19db
commit 5e09208f54

View File

@ -35,7 +35,8 @@ if ( ! $user->isAdmin($user_id) && ($_REQUEST['id'] != $user_id && !empty($_REQU
echo json_encode(array('getuserstatus' => array(
'username' => $username,
'shares' => $statistics->getUserShares($id),
'hashrate' => $statistics->getUserHashrate($id)
'hashrate' => $statistics->getUserHashrate($id),
'sharerate' => $statistics->getUserSharerate($id)
)));
// Supress master template