Skip to content

Commit

Permalink
#94 fix bug [vip:platform/pallas#924]
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanChan committed Jul 8, 2019
1 parent 5bd77c1 commit 90272e9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,12 @@ private List<MetricModel<Date, Double>> getResult(List<MetricModel<Date, Long>>
}
result.add(metricModel);
}
return result;
return result.stream().map(model-> {
if (model.getY()<0) {
model.setY(-1d);
}
return model;
}).collect(Collectors.toList());
}

/**
Expand Down

0 comments on commit 90272e9

Please sign in to comment.