Skip to content

Commit

Permalink
fix for miner instances
Browse files Browse the repository at this point in the history
  • Loading branch information
foraern committed Jun 14, 2018
1 parent 8dbe425 commit 8333975
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions post.php
Expand Up @@ -31,14 +31,7 @@
{
$json = json_decode(file_get_contents($_FILES['data']['tmp_name']), 1);

$hashes = explode(" ",$json['miner_hashes']);
$mining_instance=$json['gpus'];
foreach($hashes as $hash){
if($hash==0)
{
$mining_instance--;
}
}

$sql = "INSERT INTO hash (userid,date, rig, hash, miner_hashes, temp, fanrpm, rack_loc, ip, uptime, gpus) "
. "values("
. "'" . $f->user->id . "',"
Expand Down

0 comments on commit 8333975

Please sign in to comment.