Skip to content

Commit

Permalink
Merge pull request google#1395 from derekwaynecarr/cadvisor_wrong_values
Browse files Browse the repository at this point in the history
filesystem usage stats are wrong in v2 api
  • Loading branch information
vishh authored Jul 25, 2016
2 parents fe76598 + 8551b0e commit 04f73fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion info/v2/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import (

func machineFsStatsFromV1(fsStats []v1.FsStats) []MachineFsStats {
var result []MachineFsStats
for _, stat := range fsStats {
for i := range fsStats {
stat := fsStats[i]
readDuration := time.Millisecond * time.Duration(stat.ReadTime)
writeDuration := time.Millisecond * time.Duration(stat.WriteTime)
ioDuration := time.Millisecond * time.Duration(stat.IoTime)
Expand Down

0 comments on commit 04f73fe

Please sign in to comment.