From 01be9b3504995c97d09c839166b1884c16b6ff8b Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sat, 12 Jan 2019 15:48:23 +0100
Subject: [PATCH] feat(net): All tokens for all labels
If you have `accumulate-stats = true` it is useful to be able to display
the current network speed even if the interface is disconnected.
---
src/modules/network.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/modules/network.cpp b/src/modules/network.cpp
index 23e98d69..3c8774fe 100644
--- a/src/modules/network.cpp
+++ b/src/modules/network.cpp
@@ -136,6 +136,9 @@ namespace modules {
if (m_label[connection_state::PACKETLOSS]) {
replace_tokens(m_label[connection_state::PACKETLOSS]);
}
+ if (m_label[connection_state::DISCONNECTED]) {
+ replace_tokens(m_label[connection_state::DISCONNECTED]);
+ }
return true;
}