Permalink
Browse files

fix issue #834 setting statusIntervalUpdate causes high CPU load \ (#835

)

* fix issue #834 setting statusIntervalUpdate causes high CPU load \
check for statusInterval of 0 and return false when checking if it is time to update
  • Loading branch information...
davecramer committed Jun 8, 2017
1 parent 2d0bfce commit 59236b74acdd400d9d91d3eb2bb07d70b15392e5
@@ -169,6 +169,10 @@ private ByteBuffer receiveNextData(boolean block) throws SQLException {
}
private boolean isTimeUpdate() {
/* a value of 0 disables automatic updates */
if ( updateInterval == 0 ) {
return false;
}
long diff = System.currentTimeMillis() - lastStatusUpdate;
return diff >= updateInterval;
}

0 comments on commit 59236b7

Please sign in to comment.