From 5f0b0beb94cbbf850723bbef0639c5c4aa5eb90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 14 Jun 2021 12:45:24 +0200 Subject: [PATCH] fix(i3status-rust): limit vax percentage length --- lib/i3status-rust.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i3status-rust.nix b/lib/i3status-rust.nix index 9a42079..3a88130 100644 --- a/lib/i3status-rust.nix +++ b/lib/i3status-rust.nix @@ -97,7 +97,7 @@ in { interval = 60 * 60; command = pkgs.writers.writeDash "vax" '' ${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/vaccinations \ - | ${pkgs.jq}/bin/jq -r '"💉 Ⅰ \(.data.quote * 100)% Ⅱ \(.data.secondVaccination.quote * 100)%"' + | ${pkgs.jq}/bin/jq -r '"💉 Ⅰ \(.data.quote * 1000 | floor | . / 10)% Ⅱ \(.data.secondVaccination.quote * 1000 | floor | . / 10)%"' ''; } {