diff options
author | Harald Musum <musum@yahooinc.com> | 2023-10-10 13:34:08 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2023-10-10 13:34:08 +0200 |
commit | 408850e61e1e9d8c3d1cf742c73a4d750d775b0d (patch) | |
tree | d884102c334a156c295f8c85c521cc8ff2f78ec8 /controller-server/src/main/java/com/yahoo | |
parent | f405bcd1e6f089adff9738ee31f9d92737062cbd (diff) |
Use negative numbers for discounts
Diffstat (limited to 'controller-server/src/main/java/com/yahoo')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandler.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandler.java index debb61dacd8..b6b3c8584fd 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandler.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/pricing/PricingApiHandler.java @@ -166,7 +166,7 @@ public class PricingApiHandler extends ThreadedHttpRequestHandler { } private static void addItem(Cursor array, String name, BigDecimal amount) { - if (amount.compareTo(BigDecimal.ZERO) > 0) { + if (amount.compareTo(BigDecimal.ZERO) != 0) { var o = array.addObject(); o.setString("description", name); o.setString("amount", SCALED_ZERO.add(amount).toPlainString()); |