New RPC Call Fix: Getnetworkhashps
This commit is contained in:
+6
-6
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user