mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Revert "NB5 address high priority code scans" (#895)
This commit is contained in:
@@ -130,7 +130,7 @@ public class Unit {
|
||||
Matcher m = numberFmtPattern.matcher(spec);
|
||||
if (m.matches()) {
|
||||
String numberpart = m.group("number");
|
||||
double base = Double.parseDouble(numberpart);
|
||||
long base = Long.valueOf(numberpart);
|
||||
String unitpart = m.group("unit");
|
||||
if (unitpart != null) {
|
||||
Count specifierUnit = Count.valueOfSuffix(unitpart);
|
||||
@@ -142,7 +142,7 @@ public class Unit {
|
||||
double multiplier = (specifierScale / resultScale);
|
||||
base *= multiplier;
|
||||
}
|
||||
return Optional.of((long) base);
|
||||
return Optional.of(base);
|
||||
} else {
|
||||
logger.error("Parsing error for specifier:'" + spec + "'");
|
||||
return Optional.empty();
|
||||
|
||||
Reference in New Issue
Block a user