]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Put visual divider pipe characters between the column headings in statistics.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 23 May 2022 12:38:39 +0000 (13:38 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 23 May 2022 12:38:39 +0000 (13:38 +0100)
player.c

index c76039460ecae64f1bea0e139eb086b2b5dffcdf..9144030f78343eb553b2fc50b4b7dbc623056996 100644 (file)
--- a/player.c
+++ b/player.c
@@ -1586,8 +1586,12 @@ int ap2_buffered_nodelay_stream_statistics_print_profile[] = {0, 0, 0, 0, 0, 0,
 void statistics_item(const char *heading, const char *format, ...) {
   if (((statistics_print_profile[statistics_column] == 1) && (debuglev != 0)) ||
       (statistics_print_profile[statistics_column] == 2)) { // include this column?
-    if (was_a_previous_column != 0)
-      strcat(line_of_stats, " ");
+    if (was_a_previous_column != 0) {
+      if (statistics_row == 0)
+        strcat(line_of_stats, " | ");
+      else
+        strcat(line_of_stats, "   ");
+    }
     if (statistics_row == 0) {
       strcat(line_of_stats, heading);
     } else {