Skip to content

Commit

Permalink
fix(server): fix get metering data miss quota (#1673)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal authored Nov 10, 2023
1 parent b2fdf04 commit afbdd36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/billing/billing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@ export class BillingService {
})

const cpuTask = prom
.instantQuery(`laf:billing:cpu{appid=${app.appid}}`, time)
.instantQuery(`laf:billing:cpu{appid="${app.appid}"}`, time)
.then((res) => res.result[0])
.then((res) => Number(res.value.value))

const memoryTask = prom
.instantQuery(`laf:billing:memory{appid=${app.appid}`, time)
.instantQuery(`laf:billing:memory{appid="${app.appid}"}`, time)
.then((res) => res.result[0])
.then((res) => Number(res.value.value))

Expand Down

0 comments on commit afbdd36

Please sign in to comment.