> > Instead of using 1000*1000 > > Signed-off-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx> > --- > server/display-channel.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/server/display-channel.c b/server/display-channel.c > index 96feabc3c..1c14344be 100644 > --- a/server/display-channel.c > +++ b/server/display-channel.c > @@ -215,10 +215,10 @@ int display_channel_get_streams_timeout(DisplayChannel > *display) > stream = SPICE_CONTAINEROF(item, VideoStream, link); > red_time_t delta = (stream->last_time + RED_STREAM_TIMEOUT) - now; > > - if (delta < 1000 * 1000) { > + if (delta < NSEC_PER_MILLISEC) { > return 0; > } > - timeout = MIN(timeout, (unsigned int)(delta / (1000 * 1000))); > + timeout = MIN(timeout, (unsigned int)(delta / (NSEC_PER_MILLISEC))); > } > return timeout; > } Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx> Not only because NSEC_PER_MILLISEC == 1000*1000 but also because the unit of delta is nanoseconds :-) Frediano _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel