Commit 55dd59a7 authored by vicotor's avatar vicotor

update code

parent b652666c
Pipeline #892 failed with stages
...@@ -136,7 +136,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) { ...@@ -136,7 +136,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) {
if len(node.DiskInfos) > 0 { if len(node.DiskInfos) > 0 {
for _, diskInfo := range node.DiskInfos { for _, diskInfo := range node.DiskInfos {
mountPoint := diskInfo.Path mountPoint := diskInfo.Path
usage := diskInfo.UsedPercent * 100 usage := diskInfo.UsedPercent
allDisksInfo += fmt.Sprintf("<div class='disk-item'><strong>%s:</strong> %.2f%% (%.2f GB / %.2f GB)</div>", allDisksInfo += fmt.Sprintf("<div class='disk-item'><strong>%s:</strong> %.2f%% (%.2f GB / %.2f GB)</div>",
mountPoint, mountPoint,
usage, usage,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment