Skip to content

Commit

Permalink
reformating src
Browse files Browse the repository at this point in the history
  • Loading branch information
wakeful committed May 12, 2019
1 parent a593a74 commit d67388e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pve_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type Client struct {
}

type node struct {
Id string `json:"id"`
Name string `json:"node"`
Id string `json:"id"`
Name string `json:"node"`
UpTime json.Number `json:"uptime"`
CpuTotal json.Number `json:"maxcpu"`
CpuUsage json.Number `json:"cpu"`
Expand All @@ -47,13 +47,13 @@ type nodeResponse struct {
}

type lxc struct {
Name string `json:"name"`
Status string `json:"status"`
Name string `json:"name"`
Status string `json:"status"`
UpTime json.Number `json:"uptime"`
CpuCount json.Number `json:"cpus"`
CpuUsage json.Number `json:"cpu"`
DiskTotal json.Number `json:"maxdisk"`
DiskFree json.Number `json:"disk"`
DiskTotal json.Number `json:"maxdisk"`
DiskFree json.Number `json:"disk"`
DiskRead json.Number `json:"diskread"`
DiskWrite json.Number `json:"diskwrite"`
RamTotal json.Number `json:"maxmem"`
Expand All @@ -69,8 +69,8 @@ type lxcResponse struct {
}

type qemu struct {
Name string `json:"name"`
Status string `json:"status"`
Name string `json:"name"`
Status string `json:"status"`
UpTime json.Number `json:"uptime"`
CpuCount json.Number `json:"cpus"`
CpuUsage json.Number `json:"cpu"`
Expand All @@ -89,7 +89,7 @@ type qemuResponse struct {
}

func mu(a ...interface{}) []interface{} {
return a
return a
}

func jNumberToFloat(number json.Number) float64 {
Expand Down

0 comments on commit d67388e

Please sign in to comment.