diff --git a/dish_common.py b/dish_common.py index ced9f4d..098dcc6 100644 --- a/dish_common.py +++ b/dish_common.py @@ -124,7 +124,7 @@ def run_arg_parser(parser, need_id=False, no_stdout_errors=False): parser.error("Poll loops arg must be 2 or greater to be meaningful") # for convenience, set flags for whether any mode in a group is selected - opts.satus_mode = bool(set(STATUS_MODES).intersection(opts.mode)) + opts.status_mode = bool(set(STATUS_MODES).intersection(opts.mode)) opts.history_stats_mode = bool(set(HISTORY_STATS_MODES).intersection(opts.mode)) opts.bulk_mode = "bulk_history" in opts.mode @@ -250,7 +250,7 @@ def add_data_numeric(data, category, add_item, add_sequence): def get_status_data(opts, gstate, add_item, add_sequence): - if opts.satus_mode: + if opts.status_mode: timestamp = int(time.time()) try: groups = starlink_grpc.status_data(context=gstate.context) diff --git a/dish_grpc_text.py b/dish_grpc_text.py index db5c03a..68a5222 100644 --- a/dish_grpc_text.py +++ b/dish_grpc_text.py @@ -90,13 +90,13 @@ def parse_args(): opts = dish_common.run_arg_parser(parser) - if (opts.history_stats_mode or opts.satus_mode) and opts.bulk_mode and not opts.verbose: + if (opts.history_stats_mode or opts.status_mode) and opts.bulk_mode and not opts.verbose: parser.error("bulk_history cannot be combined with other modes for CSV output") # Technically possible, but a pain to implement, so just disallow it. User # probably doesn't realize how weird it would be, anyway, given that stats # data reports at a different rate from status data in this case. - if opts.history_stats_mode and opts.satus_mode and not opts.verbose and opts.poll_loops > 1: + if opts.history_stats_mode and opts.status_mode and not opts.verbose and opts.poll_loops > 1: parser.error("usage of --poll-loops with history stats modes cannot be mixed with status " "modes for CSV output") @@ -127,7 +127,7 @@ def print_header(opts, print_file): else: header.append(name) - if opts.satus_mode: + if opts.status_mode: context = starlink_grpc.ChannelContext(target=opts.target) try: name_groups = starlink_grpc.status_field_names(context=context)