[BUGFIX] influxdb could not handle unsign int - /proc/stats (fix #140)

This commit is contained in:
Martin/Geno 2018-05-16 14:56:24 +02:00
parent c95ae7e12a
commit cb6d388138
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 11 additions and 11 deletions

View File

@ -98,19 +98,19 @@ type SwitchPort struct {
// ProcStats struct // ProcStats struct
type ProcStats struct { type ProcStats struct {
CPU ProcStatsCPU `json:"cpu"` CPU ProcStatsCPU `json:"cpu"`
Intr uint64 `json:"intr"` Intr int64 `json:"intr"`
ContextSwitches uint64 `json:"ctxt"` ContextSwitches int64 `json:"ctxt"`
SoftIRQ uint64 `json:"softirq"` SoftIRQ int64 `json:"softirq"`
Processes uint64 `json:"processes"` Processes int64 `json:"processes"`
} }
// ProcStatsCPU struct // ProcStatsCPU struct
type ProcStatsCPU struct { type ProcStatsCPU struct {
User uint64 `json:"user"` User int64 `json:"user"`
Nice uint64 `json:"nice"` Nice int64 `json:"nice"`
System uint64 `json:"system"` System int64 `json:"system"`
Idle uint64 `json:"idle"` Idle int64 `json:"idle"`
IOWait uint64 `json:"iowait"` IOWait int64 `json:"iowait"`
IRQ uint64 `json:"irq"` IRQ int64 `json:"irq"`
SoftIRQ uint64 `json:"softirq"` SoftIRQ int64 `json:"softirq"`
} }