Skip to content

Commit

Permalink
fix segv on error
Browse files Browse the repository at this point in the history
  • Loading branch information
srfraser authored and sparrc committed Aug 20, 2015
1 parent 4b06712 commit 601b444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Bugfixes
[#113](https://github.com/influxdb/telegraf/issues/113): Update README with Telegraf/InfluxDB compatibility
[#118](https://github.com/influxdb/telegraf/pull/118): Fix for disk usage stats in Windows. Thanks @srfraser!
[#122](https://github.com/influxdb/telegraf/issues/122): Fix for DiskUsage segv fault. Thanks @srfraser!

## v0.1.5 [2015-08-13]

Expand Down
3 changes: 1 addition & 2 deletions plugins/system/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ func (s *systemPS) DiskUsage() ([]*disk.DiskUsageStat, error) {

for _, p := range parts {
du, err := disk.DiskUsage(p.Mountpoint)
du.Fstype = p.Fstype
if err != nil {
return nil, err
}

du.Fstype = p.Fstype
usage = append(usage, du)
}

Expand Down

0 comments on commit 601b444

Please sign in to comment.