Minor change to floor usage metrics to avoid misleading 100 quota usage messaging.
This commit is contained in:
parent
dc9c2f5d43
commit
c0bdcbe7a3
|
@ -87,7 +87,7 @@ export const createLicensingStore = () => {
|
||||||
return keys.reduce((acc, key) => {
|
return keys.reduce((acc, key) => {
|
||||||
const quotaLimit = license[key].value
|
const quotaLimit = license[key].value
|
||||||
const quotaUsed = (quota[key] / quotaLimit) * 100
|
const quotaUsed = (quota[key] / quotaLimit) * 100
|
||||||
acc[key] = quotaLimit > -1 ? Math.round(quotaUsed) : -1
|
acc[key] = quotaLimit > -1 ? Math.floor(quotaUsed) : -1
|
||||||
return acc
|
return acc
|
||||||
}, {})
|
}, {})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue