Browse Source

Update format-hashrate.js

master
yuriy0803 3 years ago committed by GitHub
parent
commit
2ff2ad5263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      www/app/helpers/format-hashrate.js

2
www/app/helpers/format-hashrate.js

@ -3,7 +3,7 @@ import Ember from 'ember';
export function formatHashrate(params/*, hash*/) {
var hashrate = params[0];
var i = 0;
var units = ['H', 'KH', 'MH', 'GH', 'TH', 'PH'];
var units = ['H/s', 'KH/s', 'MH/s', 'GH/s', 'TH/s', 'PH/s'];
while (hashrate > 1000) {
hashrate = hashrate / 1000;
i++;

Loading…
Cancel
Save