Fix floating point exception in agent mode

This commit is contained in:
Nathan Chan 2018-02-05 15:36:19 -08:00
parent d65c6ef7c2
commit 3d6f90047f

View File

@ -1056,7 +1056,10 @@ void args_to_options(options_t* options) {
// if (args.no_record_scale_given)
// options->records = args.records_arg;
// else
if (options->server_given)
options->records = args.records_arg / options->server_given;
else
options->records = 0;
options->binary = args.binary_given;
options->sasl = args.username_given;