Skip to content

Commit

Permalink
chore: Update CSV headers for CPU, disk, and memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Jun 20, 2024
1 parent 0bd5ede commit a029209
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/sentinel/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/shirou/gopsutil/cpu"
)

var cpuCsvHeader = "time,percent\n"
var cpuCsvHeader = "time,usage_percent\n"

type CpuUsage struct {
Time string `json:"time"`
Expand Down
2 changes: 1 addition & 1 deletion cmd/sentinel/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type DiskUsage struct {
Usage string `json:"usage"`
}

var diskCsvHeader = "time,disk,mount_point,total,free,usagePercent\n"
var diskCsvHeader = "time,disk,mount_point,total,free,usage_percent\n"

func getDiskUsage(csv bool) (string, error) {
partitions, err := disk.Partitions(true)
Expand Down
2 changes: 1 addition & 1 deletion cmd/sentinel/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/shirou/gopsutil/mem"
)

var memoryCsvHeader = "time,used,free,usedPercent\n"
var memoryCsvHeader = "time,used,free,used_percent\n"

type MemUsage struct {
Time string `json:"time"`
Expand Down

0 comments on commit a029209

Please sign in to comment.