On Fri, Jun 27, 2014 at 09:50:24AM -0700, Gurucharan Shetty wrote:
> Till now, we were initializing 'unix_epoch' through time_init().
> But if there was a call directly to xgettimeofday(), we would
> miss the initialization causing overflows. This commit fixes it
> by pre-calculating the value and assigning it globally.
> 
> Also add-in a missing return statement.
> 
> Reported-by: Alessandro Pilotti <apilo...@cloudbasesolutions.com>
> Reported-by: Linda Sun <l...@vmware.com>
> Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
> ---
> v1-v2:
>  Instead of calculating the number of 100 ns between 01/01/1601 to
>  01/01/1970 runtime, pre-calculate it and initialize.

116444736000000000 is a very large number!

Acked-by: Ben Pfaff <b...@nicira.com>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to