On Thu, 2015-06-11 at 12:33 +0530, Harish Jenny K N wrote:
> Handled SIGFPE when --interval=0 is passed to stats-tool
>
> ---
> tools/stats-tool.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/stats-tool.c b/tools/stats-tool.c
> index 7d117fd..94733a4 100644
> --- a/tools/stats-tool.c
> +++ b/tools/stats-tool.c
> @@ -885,7 +885,7 @@ int main(int argc, char *argv[])
> else
> start_ts = option_start_ts;
>
> - if (option_create > 0)
> + if (option_create > 0 && option_interval > 0)
> stats_create(data_file, option_create, option_interval,
> start_ts, rec);
>
Please print out an error/explanation if option_interval is zero and use
the default value in that case.
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman