diff --git a/code/services-satellite/control-service/src/main/java/nu/marginalia/control/model/ProcessHeartbeat.java b/code/services-satellite/control-service/src/main/java/nu/marginalia/control/model/ProcessHeartbeat.java index 703635d0..4fbdcde9 100644 --- a/code/services-satellite/control-service/src/main/java/nu/marginalia/control/model/ProcessHeartbeat.java +++ b/code/services-satellite/control-service/src/main/java/nu/marginalia/control/model/ProcessHeartbeat.java @@ -24,7 +24,7 @@ public record ProcessHeartbeat( return "STOPPED".equals(status); } public String progressStyle() { - if ("RUNNING".equals(status) && progress > 0) { + if ("RUNNING".equals(status) && progress != null) { return """ background: linear-gradient(90deg, #fff 0%%, #ccc %d%%, #fff %d%%) """.formatted(progress, progress, progress);