diff --git a/common/src/main/java/cc/tweaked/prometheus/collectors/ComputerFieldCollector.java b/common/src/main/java/cc/tweaked/prometheus/collectors/ComputerFieldCollector.java index 4268c20..338925f 100644 --- a/common/src/main/java/cc/tweaked/prometheus/collectors/ComputerFieldCollector.java +++ b/common/src/main/java/cc/tweaked/prometheus/collectors/ComputerFieldCollector.java @@ -58,9 +58,9 @@ public void observe(ServerComputer computer, Metric.Counter counter) { @Override public void observe(ServerComputer computer, Metric.Event event, long value) { if (event == Metrics.SERVER_TASKS) { - serverTime.labels(Integer.toString(computer.getID())).observe(value); + serverTime.labels(Integer.toString(computer.getID())).observe(value * 1e-9); } else if (event == Metrics.COMPUTER_TASKS) { - computerTime.labels(Integer.toString(computer.getID())).observe(value); + computerTime.labels(Integer.toString(computer.getID())).observe(value * 1e-9); } else { summaries.get(event).labels(Integer.toString(computer.getID())).observe(value); }