correct task row memory unit (#11980)

This commit is contained in:
ttys3 2022-02-03 06:00:25 +08:00 committed by GitHub
parent 05db861938
commit 1ab3b4d3d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.changelog/11980.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: fix the unit for the task row memory usage metric
```

View File

@ -67,7 +67,7 @@
{{x-icon "alert-triangle" class="is-warning"}} {{x-icon "alert-triangle" class="is-warning"}}
</span> </span>
{{else}} {{else}}
<div class="inline-chart tooltip" role="tooltip" aria-label="{{format-scheduled-bytes this.memory.used}} / {{format-scheduled-bytes this.taskStats.reservedMemory}}"> <div class="inline-chart tooltip" role="tooltip" aria-label="{{format-bytes this.memory.used}} / {{format-bytes this.taskStats.reservedMemory start='MiB'}}">
<progress <progress
class="progress is-danger is-small" class="progress is-danger is-small"
value="{{this.memory.percent}}" value="{{this.memory.percent}}"