nsImapProtocol::PercentProgressUpdateEvent(PRUnichar *message, PRInt32 percent)
nsImapProtocol::PercentProgressUpdateEvent(char *message, PRInt32 percent)
nsImapProtocol::PercentProgressUpdateEvent(PRUnichar *message, PRInt32 percent){  PRInt64 nowMS;  if (percent == m_lastPercent)    return; // hasn't changed, right? So just return. Do we need to clear this anywhere?  if (percent < 100)  // always need to do 100%  {    int64 minIntervalBetweenProgress;    LL_I2L(minIntervalBetweenProgress, 250);    int64 diffSinceLastProgress;    LL_I2L(nowMS, PR_IntervalToMilliseconds(PR_IntervalNow()));    LL_SUB(diffSinceLastProgress, nowMS, m_lastProgressTime); // r = a - b    LL_SUB(diffSinceLastProgress, diffSinceLastProgress, minIntervalBetweenProgress); // r = a - b    if (!LL_GE_ZERO(diffSinceLastProgress))      return;  }    ProgressInfo aProgressInfo;    aProgressInfo.message = message;    aProgressInfo.percent = percent;  m_lastPercent = percent;  m_lastProgressTime = nowMS;    if (m_imapMiscellaneousSink)        m_imapMiscellaneousSink->PercentProgress(this, &aProgressInfo);}