New RPC Call Fix: Getnetworkhashps

This commit is contained in:
joeuhren
2020-11-22 18:28:44 -07:00
parent a254676a9b
commit b6fda00ce9
+6 -6
View File
@@ -66,15 +66,15 @@ module.exports = {
if (response == 'There was an error. Check your console.') { return cb(response);}
if (response) {
if (settings.nethash_units == 'K') {
return cb((response * 1000).toFixed(4));
} else if (settings.nethash_units == 'G') {
return cb((response / 1000).toFixed(4));
} else if (settings.nethash_units == 'H') {
return cb((response * 1000000).toFixed(4));
} else if (settings.nethash_units == 'T') {
} else if (settings.nethash_units == 'M'){
return cb((response / 1000000).toFixed(4));
} else if (settings.nethash_units == 'P') {
} else if (settings.nethash_units == 'G') {
return cb((response / 1000000000).toFixed(4));
} else if (settings.nethash_units == 'T') {
return cb((response / 1000000000000).toFixed(4));
} else if (settings.nethash_units == 'P') {
return cb((response / 1000000000000000).toFixed(4));
} else {
return cb(response.toFixed(4));
}