yes there is a cast double to float because select takes a float as
argument ...


On Tue, May 13, 2014 at 7:30 PM, Alexander Rykovanov <
notifications@github.com> wrote:

> In binary_protocol/src/opc_tcp_processor.cpp:
>
> > +      for (const SubscriptionBinaryData& data: Subscriptions)
> > +      {
> > +        std::chrono::duration<double> tmp =  data.last_check + data.period;
> > +        std::cout << "Time since last check : " << (now - data.last_check).count() << " Period: " << data.period.count() << " time to next fire: " << (tmp - now).count() << std::endl;
> > +        if (tmp < next_fire)
> > +        {
> > +          next_fire = tmp;
> > +        }
> > +      }
> > +      auto diff = next_fire - now;
> > +      if ( diff.count() < 0 )
> > +      {
> > +        std::cout << "Event should allrady have been fired returning 0"<< std::endl;
> > +        return 0;
> > +      }
> > +      return diff.count() ;
>
> here will be cast from double to float, yes? And warning at compile time.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/FreeOpcUa/opcua-server/pull/30/files#r12596335>
> .
>