esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Hirsch <hirsch.d...@gmail.com>
Subject Re: Would someone fix this bug...Thank you.
Date Wed, 03 Nov 2010 12:44:00 GMT
yes they should occur once

Fixed and committed

On Wed, Nov 3, 2010 at 1:34 PM, Imtiaz Ahmed H E <in.imtiaz@gmail.com> wrote:
> In SchedulerActor.scala,
>
> def sendMessage() {
>      val now = System.currentTimeMillis
>      val dateString = TimeHelpers.toInternetDate(now)
>      Message.create.author(user).
>      when(now).
>        source("every").
>      setTextAndTags("Regularly scheduled action: " + dateString, Nil, Empty).
>      foreach{ msg =>
>        // Noisy & can't be rejected
>          // if (msg.save) {
>        messageProcessor ! Distributor.AddMessageToMailbox(user, msg, reason)
>              // }
>      }
>      Stats incr "schedulerMessagesCreated"
>      Stats incr "messagesCreated"
>      Stats incr "schedulerMessagesCreated"
>      Stats incr "messagesCreated"
>    }
>
>
> I believe, the following lines should occur only once, they are repeated ?
>
>      Stats incr "schedulerMessagesCreated"
>      Stats incr "messagesCreated"
>
> Imtiaz

Mime
View raw message