Commit dbfd2862 authored by vicotor's avatar vicotor

update install

parent 184bd9bd
Pipeline #890 canceled with stages
...@@ -117,7 +117,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) { ...@@ -117,7 +117,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) {
Status string Status string
StatusClass string StatusClass string
MemoryInfo string MemoryInfo string
AllDisksInfo string AllDisksInfo template.HTML
LastReport string LastReport string
} }
...@@ -152,7 +152,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) { ...@@ -152,7 +152,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) {
Status: status, Status: status,
StatusClass: statusClass, StatusClass: statusClass,
MemoryInfo: fmt.Sprintf("%.2f GB / %.2f GB", float64(node.MemoryFree)/(1024*1024*1024), float64(node.MemoryTotal)/(1024*1024*1024)), MemoryInfo: fmt.Sprintf("%.2f GB / %.2f GB", float64(node.MemoryFree)/(1024*1024*1024), float64(node.MemoryTotal)/(1024*1024*1024)),
AllDisksInfo: allDisksInfo, AllDisksInfo: template.HTML(allDisksInfo),
LastReport: node.Timestamp.Format("2006-01-02 15:04:05"), LastReport: node.Timestamp.Format("2006-01-02 15:04:05"),
} }
} }
......
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