Skip to content

Commit

Permalink
fix(web): fix monitor data display (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 authored Sep 9, 2024
1 parent baa83bd commit cf73be8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
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/gh-rebot@v0.0.6
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/gh-rebot@v0.0.6
# 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

0 comments on commit cf73be8

Please sign in to comment.