Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): fix monitor display #17

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/build-sealos-cluster-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ jobs:
sudo buildah manifest add $IMAGE:$VERSION docker://$IMAGE:$VERSION-arm64
sudo buildah manifest push --all $IMAGE:$VERSION docker://$IMAGE:$VERSION

- name: Renew issue and Sync Images
uses: labring/[email protected]
with:
version: v0.0.8-rc1
env:
GH_TOKEN: "${{ secrets.GH_PAT }}"
SEALOS_TYPE: "issue_renew"
SEALOS_ISSUE_TITLE: "【DaylyReport】 Auto build for sealaf"
SEALOS_ISSUE_BODYFILE: "README.md"
SEALOS_ISSUE_LABEL: "dayly-report"
SEALOS_ISSUE_TYPE: "day"
SEALOS_ISSUE_REPO: "labring-actions/cluster-image"
SEALOS_COMMENT_BODY: "/imagesync ghcr.io/${{ github.repository_owner }}/${{ env.image }}:${{ env.tag }}"
# - name: Renew issue and Sync Images
# uses: labring/[email protected]
# with:
# version: v0.0.8-rc1
# env:
# GH_TOKEN: "${{ secrets.GH_PAT }}"
# SEALOS_TYPE: "issue_renew"
# SEALOS_ISSUE_TITLE: "【DaylyReport】 Auto build for sealaf"
# SEALOS_ISSUE_BODYFILE: "README.md"
# SEALOS_ISSUE_LABEL: "dayly-report"
# SEALOS_ISSUE_TYPE: "day"
# SEALOS_ISSUE_REPO: "labring-actions/cluster-image"
# SEALOS_COMMENT_BODY: "/imagesync ghcr.io/${{ github.repository_owner }}/${{ env.image }}:${{ env.tag }}"

# trigger-workflow-e2e:
# needs: [build_cluster_image]
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/app/mods/StatusBar/MonitorBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ export default function MonitorBar() {
setResources([
{
label: `CPU`,
percent: getAverage(instantData.cpu) * 100,
percent: getAverage(instantData.cpu),
color: "#47C8BF",
},
{
label: t("Spec.RAM"),
percent: getAverage(instantData.memory) * 100,
percent: getAverage(instantData.memory),
color: "#8172D8",
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function AreaCard(props: {
const tempData = item.values.map((item) => {
return {
xData: modifyTimestamp(item[0]),
[`value${index}`]: Number((Number(item[1]) * maxValue).toFixed(2)),
[`value${index}`]: Number((Number(item[1]) * maxValue * 0.01).toFixed(2)),
};
});
tempDataArray.push(tempData);
Expand All @@ -131,7 +131,7 @@ export default function AreaCard(props: {
data[dataNumber - 1]?.values.map((item) => {
return {
xData: item[0] * 1000,
value0: Number((Number(item[1]) * maxValue).toFixed(2)),
value0: Number((Number(item[1]) * maxValue * 0.01).toFixed(2)),
};
}),
);
Expand Down
Loading