diff --git a/internal/log/handlers/cli/results.go b/internal/log/handlers/cli/results.go index 4ed7365..2c367aa 100644 --- a/internal/log/handlers/cli/results.go +++ b/internal/log/handlers/cli/results.go @@ -80,6 +80,7 @@ func logResultItem(w io.Writer, f log.Fields) error { rID := f.Get("id").(int64) name := f.Get("name").(string) + isDone := f.Get("is_done").(bool) startTime := f.Get("start_time").(time.Time) networkName := f.Get("network_name").(string) asn := fmt.Sprintf("AS%d (%s)", f.Get("asn").(uint), f.Get("network_country_code").(string)) @@ -114,7 +115,12 @@ func logResultItem(w io.Writer, f log.Fields) error { util.RightPad(summary[2], colWidth))) if index == totalCount-1 { - fmt.Fprintf(w, "└┬──────────────┬──────────────┬──────────────────┬┘\n") + if isDone == true { + fmt.Fprintf(w, "└┬──────────────┬──────────────┬──────────────────┬┘\n") + } else { + // We want the incomplete section to not have a footer + fmt.Fprintf(w, "└──────────────────────────────────────────────────┘\n") + } } return nil } diff --git a/internal/output/output.go b/internal/output/output.go index 0391cd3..0081bb2 100644 --- a/internal/output/output.go +++ b/internal/output/output.go @@ -110,7 +110,7 @@ func ResultItem(result ResultItemData) { "network_name": result.NetworkName, "asn": result.ASN, "runtime": result.Runtime, - "done": result.Done, + "is_done": result.Done, "data_usage_down": result.DataUsageDown, "data_usage_up": result.DataUsageUp, "index": result.Index,