fix(quota): round usage percentage to integer

Amolith created

Assisted-by: Claude Opus 4.5 via Crush

Change summary

functions/synu.fish | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

functions/synu.fish 🔗

@@ -13,7 +13,7 @@ function synu --description "Universal agent wrapper with Synthetic API quota tr
         set -l requests (echo "$quota" | cut -d' ' -f1)
         set -l limit (echo "$quota" | cut -d' ' -f2)
         set -l remaining (math "$limit - $requests")
-        set -l percent_used (math "$requests * 100 / $limit")
+        set -l percent_used (math -s0 "$requests * 100 / $limit")
         printf "Usage: "
         if test $percent_used -lt 33
             set_color green
@@ -157,7 +157,7 @@ function synu --description "Universal agent wrapper with Synthetic API quota tr
     set -l remaining (math "$limit - $requests_after")
 
     # Calculate percentage used: (requests_after * 100) / limit
-    set -l percent_used (math "$requests_after * 100 / $limit")
+    set -l percent_used (math -s0 "$requests_after * 100 / $limit")
 
     # Display session usage and remaining quota with color
     # Force a newline first for proper separation from agent output