Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #45 from SpigotMC/master
Browse files Browse the repository at this point in the history
Merge branch 'SpigotMC-master'
  • Loading branch information
John authored Jun 20, 2016
2 parents d94befc + 6f6cb58 commit 3bb507f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ public <T extends Event> T callEvent(T event)
eventBus.post( event );
event.postCall();

long elapsed = start - System.nanoTime();
if ( elapsed > 250000 )
long elapsed = System.nanoTime() - start;
if ( elapsed > 1000000 )
{
ProxyServer.getInstance().getLogger().log( Level.WARNING, "Event {0} took more {1}ns to process!", new Object[]
ProxyServer.getInstance().getLogger().log( Level.WARNING, "Event {0} took {1}ns to process!", new Object[]
{
event, elapsed
} );
Expand Down

0 comments on commit 3bb507f

Please sign in to comment.