Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rutgerkirkels committed Feb 3, 2018
1 parent ac17c9e commit 4a15d0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function getStats() {
foreach ($data->rigs as $ethosId => $minerData) {
$miner = new Miner();
$miner->setId($ethosId);
$miner->setTotalHashrate($minerData->hash);
$miner->setHashrate($minerData->hash);
$miner->setCondition($minerData->condition);
$miner->setDriveName($minerData->drive_name);
$miner->setLanChip($minerData->lan_chip);
Expand Down Expand Up @@ -211,7 +211,7 @@ public function getMiner($ethosId, $panelId = null) {
$miner->setRam($minerData->ram);
$miner->setLanChip($minerData->lan_chip);
$miner->setDriveName($minerData->drive_name);
$miner->setTotalHashrate($minerData->hash);
$miner->setHashrate($minerData->hash);
$miner->setCondition($minerData->condition);
$miner->setVersion($minerData->version);

Expand Down
10 changes: 5 additions & 5 deletions src/Miner.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Miner
/**
* @var float
*/
protected $totalHashrate;
protected $hashrate;

/**
* @var array
Expand Down Expand Up @@ -185,17 +185,17 @@ public function setRam(int $ram): void
/**
* @return mixed
*/
public function getTotalHashrate()
public function getHashrate()
{
return $this->totalHashrate;
return $this->hashrate;
}

/**
* @param mixed $totalHashrate
*/
public function setTotalHashrate($totalHashrate): void
public function setHashrate($hashrate): void
{
$this->totalHashrate = $totalHashrate;
$this->hashrate = $hashrate;
}

/**
Expand Down

0 comments on commit 4a15d0c

Please sign in to comment.