Copy stats before we convert them.

Fix # 782
This commit is contained in:
Victor Marmol 2015-06-25 11:30:36 -07:00
parent afc21887db
commit fc62b8c384

View File

@ -276,7 +276,7 @@ func (self *dockerContainerHandler) GetStats() (*info.ContainerStats, error) {
}
func convertInterfaceStats(stats *info.InterfaceStats) {
net := stats
net := *stats
// Ingress for host veth is from the container.
// Hence tx_bytes stat on the host veth is actually number of bytes received by the container.