prettier
Signed-off-by: Manuel Stein <manuel.stein@nokia-bell-labs.com>
This commit is contained in:
@@ -118,7 +118,7 @@ export const currentToDeclaredResourceToPerc = (
|
||||
current: number | string,
|
||||
resource: number | string,
|
||||
): string => {
|
||||
if(Number(resource) == 0) return `0%`;
|
||||
if (Number(resource) == 0) return `0%`;
|
||||
|
||||
if (typeof current === 'number' && typeof resource === 'number') {
|
||||
return `${Math.round((current / resource) * 100)}%`;
|
||||
|
||||
Reference in New Issue
Block a user