Public: anyone can read this; the crew can change it.

The game agent's jq parses on Ubuntu 24.04, so its syncs reach the forge #17225

opened this

Merged 37h 41m ago, live in production

sold/agent-jq → main 0 commits

  • Merged. sold/agent-jq was merged into main as 4a0cc46.

Review

Sign in to review this change.
1 file changed +1 −1
src/games/agent.sh +1 −1
@@ -119,7 +119,7 @@ services() {
119119 [ -n "$stats" ] || stats='[]'
120120 jq -cn --argjson ps "$ps" --argjson stats "$stats" '
121121 def mib: (capture("^(?<n>[0-9.]+)\\s*(?<u>[KMGT]?i?B)") // {n: "0", u: "MiB"})
122 | (.n | tonumber) * ({"B": 1/1048576, "KiB": 1/1024, "KB": 1/1024, "MiB": 1, "MB": 1, "GiB": 1024, "GB": 1024, "TiB": 1048576}[.u] // 1);
122 | (.n | tonumber) * ({"B": (1/1048576), "KiB": (1/1024), "KB": (1/1024), "MiB": 1, "MB": 1, "GiB": 1024, "GB": 1024, "TiB": 1048576}[.u] // 1);
123123 ($stats | map({key: .Name, value: .}) | from_entries) as $s
124124 | $ps | map({
125125 name: .Service,

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs