Skip to content

Commit

Permalink
Brackets, don't profile constantly.
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed May 29, 2013
1 parent 788c265 commit 94ee3d4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -178,7 +178,7 @@ public int nextTickSpacing() {
public void tickStart(final EnumSet<TickType> type, final Object... tickData) {
final EntityTickProfiler entityTickProfiler = EntityTickProfiler.ENTITY_TICK_PROFILER;
entityTickProfiler.tick();
if (counter++ % profilingInterval * 60 * 20 != 0) {
if (counter++ % (profilingInterval * 60 * 20) != 0) {
return;
}
entityTickProfiler.startProfiling(new Runnable() {
Expand Down

0 comments on commit 94ee3d4

Please sign in to comment.