Skip to content

Commit

Permalink
add "Th, Ph" for hashrate
Browse files Browse the repository at this point in the history
  • Loading branch information
deepgully committed Feb 13, 2019
1 parent 37d5f2a commit e7244a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libdevcore/CommonData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ std::string dev::getScaledSize(double _value, double _divisor, int _precision, s

std::string dev::getFormattedHashes(double _hr, ScaleSuffix _suffix, int _precision)
{
static string suffixes[] = {"h", "Kh", "Mh", "Gh"};
return dev::getScaledSize(_hr, 1000.0, _precision, suffixes, 4, _suffix);
static string suffixes[] = {"h", "Kh", "Mh", "Gh", "Th", "Ph"};
return dev::getScaledSize(_hr, 1000.0, _precision, suffixes, 6, _suffix);
}

std::string dev::getFormattedMemory(double _mem, ScaleSuffix _suffix, int _precision)
Expand Down

0 comments on commit e7244a1

Please sign in to comment.