fix(style): body scroll

This commit is contained in:
jialin
2024-10-22 18:37:45 +08:00
parent c442a33d5e
commit bc9129bcbe
6 changed files with 39 additions and 8 deletions
+8 -1
View File
@@ -200,7 +200,14 @@ const GPUList: React.FC = () => {
render={(text, record: GPUDeviceItem) => {
return (
<ProgressBar
percent={_.round(record.memory?.utilization_rate, 0)}
percent={
record.memory?.used
? _.round(record.memory?.utilization_rate, 0)
: _.round(
record.memory?.allocated / record.memory?.total,
0
)
}
label={
<span className="flex-column">
<span>
+10 -1
View File
@@ -454,7 +454,16 @@ const Resources: React.FC = () => {
</span>
<ProgressBar
key={index}
percent={_.round(item.memory?.utilization_rate, 0)}
percent={
item.memory?.used
? _.round(item.memory?.utilization_rate, 0)
: _.round(
(item.memory?.allocated /
item.memory?.total) *
100,
0
)
}
label={
<span className="flex-column">
<span>