Fix floating point exception in agent mode
This commit is contained in:
parent
d65c6ef7c2
commit
3d6f90047f
@ -1056,7 +1056,10 @@ void args_to_options(options_t* options) {
|
|||||||
// if (args.no_record_scale_given)
|
// if (args.no_record_scale_given)
|
||||||
// options->records = args.records_arg;
|
// options->records = args.records_arg;
|
||||||
// else
|
// else
|
||||||
options->records = args.records_arg / options->server_given;
|
if (options->server_given)
|
||||||
|
options->records = args.records_arg / options->server_given;
|
||||||
|
else
|
||||||
|
options->records = 0;
|
||||||
|
|
||||||
options->binary = args.binary_given;
|
options->binary = args.binary_given;
|
||||||
options->sasl = args.username_given;
|
options->sasl = args.username_given;
|
||||||
|
Loading…
Reference in New Issue
Block a user