瀏覽代碼

Merge pull request #861 from ClarenceYk/for_test

Update app/requests.ts
Yifei Zhang 1 年之前
父節點
當前提交
7cd9f644ee
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/requests.ts

+ 4 - 0
app/requests.ts

@@ -113,6 +113,10 @@ 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;
+  }
 
   return {
     used: response.total_usage,