BLK-164 add value command

This will reset the counter when the "total_count" resets

We could add another command, like "total_value", to do what you are
suggesting

- sent from my Android
On Dec 23, 2014 5:07 PM, "Chris Brackert" <notifications@github.com> wrote:

> In simulator_fast_block.py
> <https://github.com/nio-blocks/simulator/pull/2#discussion-diff-22241475>:
>
> >              try:
> >                  sleep_time = reset_interval - (_time() - reset_start)
> >                  sleep(sleep_time)
> >              except ValueError:
> >                  pass
> > -
> > +            self.counter = 0
>
> I'm not very familiar with the structure of the block, but this line looks
> wrong to me. The value command makes it seem like this should be a
> cumulative count but this makes it appear to be just the count of each call
> to notify_signals.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/nio-blocks/simulator/pull/2/files#r22241475>.
>