Skip to content

Commit

Permalink
Fix units in task/server time
Browse files Browse the repository at this point in the history
Closes #5
  • Loading branch information
SquidDev committed May 5, 2023
1 parent 109de72 commit 9a420f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9a420f2

Please sign in to comment.