[BUGFIX] influxdb could not handle unsign int - /proc/stats (fix #140)
This commit is contained in:
parent
c95ae7e12a
commit
cb6d388138
@ -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"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user