Skip to content

Commit

Permalink
旧版本使用旧版获取方式(临时)
Browse files Browse the repository at this point in the history
Relates to #217
  • Loading branch information
Xujiayao committed Feb 17, 2024
1 parent af42af2 commit fe28676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/xujiayao/discord_mc_chat/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,8 @@ private static Tuple<Double, Double> getTickInfo() {
}
//#else
//$$ // TODO Compat TPS & MSPT (Issue #217)
//$$ double tps = 0;
//$$ double mspt = 0;
//$$ double mspt = SERVER.getAverageTickTime();
//$$ double tps = Math.min(1000.0 / mspt, 20);
//#endif

return new Tuple<>(tps, mspt);
Expand Down

0 comments on commit fe28676

Please sign in to comment.