[lxc-devel] [lxd/master] Fix wrong packets sent value
stgraber on Github
lxc-bot at linuxcontainers.org
Wed Mar 30 17:02:04 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160330/40e24935/attachment.bin>
-------------- next part --------------
From 3119b5a79c2c4d7e0476e21026fa2e2bea1525c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 30 Mar 2016 12:18:38 -0400
Subject: [PATCH] Fix wrong packets sent value
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Closes #1825
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxc/info.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxc/info.go b/lxc/info.go
index 58e495c..99033b6 100644
--- a/lxc/info.go
+++ b/lxc/info.go
@@ -165,7 +165,7 @@ func (c *infoCmd) containerInfo(d *lxd.Client, name string, showLog bool) error
networkInfo += fmt.Sprintf(" %s: %s\n", i18n.G("Bytes received"), shared.GetByteSizeString(net.Counters.BytesReceived))
networkInfo += fmt.Sprintf(" %s: %s\n", i18n.G("Bytes sent"), shared.GetByteSizeString(net.Counters.BytesSent))
networkInfo += fmt.Sprintf(" %s: %d\n", i18n.G("Packets received"), net.Counters.PacketsReceived)
- networkInfo += fmt.Sprintf(" %s: %d\n", i18n.G("Packets sent"), net.Counters.PacketsReceived)
+ networkInfo += fmt.Sprintf(" %s: %d\n", i18n.G("Packets sent"), net.Counters.PacketsSent)
}
if networkInfo != "" {
More information about the lxc-devel
mailing list