Skip to content

Commit

Permalink
Remove trailing commas after system information in header
Browse files Browse the repository at this point in the history
  • Loading branch information
dlax committed Dec 8, 2021
1 parent 0f5e88d commit 9954775
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pgactivity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def indent(text: str) -> str:
f"Write: {render(system_info.io_write)}",
],
]
yield from render_columns(system_columns, delimiter=", ")
yield from render_columns(system_columns, delimiter=" ")


@limit
Expand Down
18 changes: 9 additions & 9 deletions tests/test_views.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ Local host, with priviledged access:
... system_info=sysinfo, width=150)
PostgreSQL 13.1 - localhost - tester@host:5432/postgres - Ref.: 2s - Min. duration: 1.2s
Size: 117.74M - 12B/s ⋅ TPS: 1 ⋅ Active connections: 79 ⋅ Duration mode: query
Mem.: 42.5% - 1.87G/5.75G, IO Max: 12/s
Swap: 0.0% - 2.29K/5.88G, Read: 128B/s - 6/s
Load: 25.00 0.19 0.39, Write: 8B/s - 9/s
Mem.: 42.5% - 1.87G/5.75G IO Max: 12/s
Swap: 0.0% - 2.29K/5.88G Read: 128B/s - 6/s
Load: 25.00 0.19 0.39 Write: 8B/s - 9/s


Tests for columns_header()
Expand Down Expand Up @@ -471,9 +471,9 @@ Tests for screen()
... )
PostgreSQL 13 - testhost - pgadm@server.prod.tld:5433/app - Ref.: 10s - Min. duration: 1s
Size: 9.06P - 9.76K/s ⋅ TPS: 5 ⋅ Active connections: 7 ⋅ Duration mode: backend
Mem.: 2.5% - 954.85M/3.93G, IO Max: 76/s
Swap: 1.0% - 2.29K/5.88G, Read: 128B/s - 6/s
Load: 0.50 1.90 0.93, Write: 8B/s - 9/s
Mem.: 2.5% - 954.85M/3.93G IO Max: 76/s
Swap: 1.0% - 2.29K/5.88G Read: 128B/s - 6/s
Load: 0.50 1.90 0.93 Write: 8B/s - 9/s
RUNNING QUERIES
PID DATABASE CPU% MEM% state Query
1234 business 2.4 1.0 active SELECT product_id, p.name FROM products p LEFT JOIN sales s USING (product_id) WHERE s.date >
Expand Down Expand Up @@ -509,9 +509,9 @@ F1/1 Running queries F2/2 Waiting queries F3/3 Blocking queries Space Pa
... )
PostgreSQL 13 - testhost - pgadm@server.prod.tld:5433/app - Ref.: 10s - Min.
Size: 9.06P - 9.76K/s ⋅ TPS: 5 ⋅ Active connections: 7 ⋅ Duration mode: backend
Mem.: 2.5% - 954.85M/3.93G, IO Max: 76/s
Swap: 1.0% - 2.29K/5.88G, Read: 128B/s - 6/s
Load: 0.50 1.90 0.93, Write: 8B/s - 9/s
Mem.: 2.5% - 954.85M/3.93G IO Max: 76/s
Swap: 1.0% - 2.29K/5.88G Read: 128B/s - 6/s
Load: 0.50 1.90 0.93 Write: 8B/s - 9/s
RUNNING QUERIES
PID DATABASE CPU% MEM% state Query
1234 business 2.4 1.0 active SELECT product_id, p.na
Expand Down

0 comments on commit 9954775

Please sign in to comment.