Skip to content

Commit

Permalink
[FIX] Backport 'Sentry module Java 8'
Browse files Browse the repository at this point in the history
  • Loading branch information
gravit0 committed Sep 20, 2023
1 parent b978914 commit 8c61898
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public SentryEvent process(SentryEvent event, Hint hint) {
event.getContexts().put("Memory info", OshiUtils.makeMemoryProperties());
}
long uptime = JVMHelper.RUNTIME_MXBEAN.getUptime();
event.getContexts().put("Uptime", "%ds %dms".formatted(uptime / 1000, uptime % 1000));
event.getContexts().put("Uptime", String.format("%ds %dms", uptime / 1000, uptime % 1000));
return event;
}
}

0 comments on commit 8c61898

Please sign in to comment.