Skip to content

Commit

Permalink
Chore: remove process cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
avivash committed Nov 14, 2023
1 parent d93a44a commit edd8c2c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
]
},
"dependencies": {
"@fission-codes/homestar": "^0.5.1",
"@fission-codes/homestar": "^0.6.0",
"@oddjs/odd": "0.37.0",
"@types/three": "^0.156.0",
"chart.js": "^4.4.0",
Expand Down
7 changes: 4 additions & 3 deletions src/routes/activity/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,18 @@
delay: 20,
opacity: 0
}}
class="flex flex-col gap-4 md:min-h-[189px] p-4 bg-base-100 border border-odd-gray-200 rounded-sm"
class="flex flex-col gap-4 p-4 bg-base-100 border border-odd-gray-200 rounded-sm"
>
<!-- md:min-h-[189px] -->
<h3 class="text-heading-lg">CPU</h3>

<ProgressBar
<!-- <ProgressBar
label="Process CPU Usage"
used={metrics.find(
m => m?.metric_name === 'homestar_process_cpu_usage_percentage'
)?.data[0]?.value}
total={100}
/>
/> -->

<ProgressBar
label="Total System Load"
Expand Down
6 changes: 6 additions & 0 deletions src/routes/workflows/components/graph/ImageNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
const fr = new FileReader()
fr.onload = async () => {
// const imgBuffer = Buffer.from(new Uint8Array(fr.result))
// const sig = Buffer.from('89504e47', 'hex')
// if (imgBuffer.compare(sig, undefined, undefined, 0, 4) === 0) {
// console.log('checked')
// }
uploadedImage = fr.result
imageBitmap = await createImageBitmap(files[0])
}
Expand Down

0 comments on commit edd8c2c

Please sign in to comment.