averageFlushDuration = totalTimeInFlush / numberOfFlushes;
averageFlushDuration = totalTimeInFlush / (double)numberOfFlushes;
   private void onStopFlush()   {      if (stats)      {         long stopFlushTime = System.currentTimeMillis();         totalTimeInFlush += (stopFlushTime - startFlushTime);         if (numberOfFlushes > 0)         {            averageFlushDuration = totalTimeInFlush / numberOfFlushes;         }      }      if (log.isDebugEnabled())         log.debug("Received STOP_FLUSH at " + localAddress);            synchronized (sharedLock)      {         flushCompletedSet.clear();         flushOkSet.clear();         flushMembers.clear();         flushCaller = null;      }                    synchronized (blockMutex)      {         isBlockState = false;         blockMutex.notifyAll();      }   }