fix decimals

This commit is contained in:
soulgalore 2020-05-19 20:34:10 +02:00
parent b3d444d0fa
commit 09567b8d11
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ module.exports = {
options = options || {};
let percentiles = options.percentiles || [0, 90, 100];
let decimals = options.decimals || 0;
if (stats.median() < 1) {
if (stats.median() < 1 && stats.median() > 0) {
decimals = 4;
}