Fix history counter query in sqlite script
Got broken when I made a separate samples option for bulk history vs history stats. Also, it looks like I never actually implemented support for the --skip-query option.
This commit is contained in:
parent
e10c9dbb7f
commit
c14ae847ae
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ def loop_body(opts, gstate):
|
||||||
rc = dish_common.get_data(opts, gstate, cb_add_item, cb_add_sequence)
|
rc = dish_common.get_data(opts, gstate, cb_add_item, cb_add_sequence)
|
||||||
|
|
||||||
if opts.bulk_mode and not rc:
|
if opts.bulk_mode and not rc:
|
||||||
if gstate.counter is None and opts.samples < 0:
|
if gstate.counter is None and not opts.skip_query and opts.bulk_samples < 0:
|
||||||
gstate.timestamp, gstate.counter = query_counter(opts, gstate)
|
gstate.timestamp, gstate.counter = query_counter(opts, gstate)
|
||||||
rc = dish_common.get_bulk_data(opts, gstate, cb_add_bulk)
|
rc = dish_common.get_bulk_data(opts, gstate, cb_add_bulk)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue