> +static uint64_t > +stats_get_diff(uint64_t stats, uint64_t offset) > +{ > + return stats - offset; > +}
No need for this function; just subtract inline instead. With the suggested change, Reviewed-by: Morten Brørup <m...@smartsharesystems.com>
> +static uint64_t > +stats_get_diff(uint64_t stats, uint64_t offset) > +{ > + return stats - offset; > +}
No need for this function; just subtract inline instead. With the suggested change, Reviewed-by: Morten Brørup <m...@smartsharesystems.com>