feat: check usage throttle

This commit is contained in:
Yidadaa
2023-04-17 23:12:27 +08:00
parent 525a2ff9a7
commit fdc8278b90
4 changed files with 55 additions and 20 deletions

View File

@@ -113,7 +113,7 @@ export async function requestUsage() {
if (response.total_usage) {
response.total_usage = Math.round(response.total_usage) / 100;
}
if (total.hard_limit_usd) {
total.hard_limit_usd = Math.round(total.hard_limit_usd * 100) / 100;
}