mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 22:48:46 +00:00
fixed a formatting error and longhorn's usage bar
This commit is contained in:
parent
a1f2003a77
commit
c54374068d
2 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ export default function Node({ data, expanded, labels }) {
|
|||
<div className="pr-1">{t("resources.total")}</div>
|
||||
</span>
|
||||
)}
|
||||
<UsageBar percent={Math.round((data.node.available / data.node.maximum) * 100)} />
|
||||
<UsageBar percent={Math.round(((data.node.maximum - data.node.available) / data.node.maximum) * 100)} />
|
||||
</div>
|
||||
</div>
|
||||
{labels && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue