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
Merged 37h 41m ago, live in production
sold/agent-jq → main 0 commits
1 file
changed +1
−1
src/games/agent.sh +1 −1
| @@ -119,7 +119,7 @@ services() { | ||
| 119 | 119 | [ -n "" ] || stats='[]' |
| 120 | 120 | jq -cn --argjson ps "" --argjson stats "" ' |
| 121 | 121 | 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); | |
| 123 | 123 | ( | map({key: .Name, value: .}) | from_entries) as |
| 124 | 124 | | | map({ |
| 125 | 125 | name: .Service, |
new above
offline