diff options
| author | Reed <admin@mrwang.pw> | 2020-04-16 10:08:08 +0800 |
|---|---|---|
| committer | Reed <admin@mrwang.pw> | 2020-04-16 10:08:08 +0800 |
| commit | aada5b9aa7fa0d38acd1cb719fe5af5c465f5b8f (patch) | |
| tree | c721c958d0486aefa330855562c1fda868da8d89 /weed/server/volume_server_ui | |
| parent | 9cacaf5eca3de4bb8b25d2dc61da4ae4429241cd (diff) | |
| download | seaweedfs-aada5b9aa7fa0d38acd1cb719fe5af5c465f5b8f.tar.xz seaweedfs-aada5b9aa7fa0d38acd1cb719fe5af5c465f5b8f.zip | |
making volume stats size info readable.
Diffstat (limited to 'weed/server/volume_server_ui')
| -rw-r--r-- | weed/server/volume_server_ui/templates.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/weed/server/volume_server_ui/templates.go b/weed/server/volume_server_ui/templates.go index 1c1394369..a3175e9ca 100644 --- a/weed/server/volume_server_ui/templates.go +++ b/weed/server/volume_server_ui/templates.go @@ -151,9 +151,9 @@ var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(`<!DOC <tr> <td><code>{{ .Id }}</code></td> <td>{{ .Collection }}</td> - <td>{{ .Size }} Bytes</td> + <td>{{ bytesToHumanReadble .Size }}</td> <td>{{ .FileCount }}</td> - <td>{{ .DeleteCount }} / {{.DeletedByteCount}} Bytes</td> + <td>{{ .DeleteCount }} / {{bytesToHumanReadble .DeletedByteCount}}</td> <td>{{ .Ttl }}</td> <td>{{ .ReadOnly }}</td> </tr> @@ -181,9 +181,9 @@ var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(`<!DOC <tr> <td><code>{{ .Id }}</code></td> <td>{{ .Collection }}</td> - <td>{{ .Size }} Bytes</td> + <td>{{ bytesToHumanReadble .Size }}</td> <td>{{ .FileCount }}</td> - <td>{{ .DeleteCount }} / {{.DeletedByteCount}} Bytes</td> + <td>{{ .DeleteCount }} / {{bytesToHumanReadble .DeletedByteCount}}</td> <td>{{ .RemoteStorageName }}</td> <td>{{ .RemoteStorageKey }}</td> </tr> @@ -209,7 +209,7 @@ var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(`<!DOC <tr> <td><code>{{ .VolumeId }}</code></td> <td>{{ .Collection }}</td> - <td>{{ .ShardSize }} Bytes</td> + <td>{{ bytesToHumanReadble .ShardSize }}</td> <td>{{ .ShardIdList }}</td> <td>{{ .CreatedAt.Format "02 Jan 06 15:04 -0700" }}</td> </tr> |
