File src/Network.cpp changed (mode: 100644) (index f7a3580..a290750) |
... |
... |
void Network::update() |
45 |
45 |
std::ostringstream result; |
std::ostringstream result; |
46 |
46 |
|
|
47 |
47 |
const Network::ifaceList &ifaces { getIfacesInfo() }; |
const Network::ifaceList &ifaces { getIfacesInfo() }; |
|
48 |
|
int i = 0; |
48 |
49 |
for (const std::pair<std::string, ifaceInfo> &iface : ifaces) { |
for (const std::pair<std::string, ifaceInfo> &iface : ifaces) { |
49 |
50 |
const auto prevIt = last.find(iface.first); |
const auto prevIt = last.find(iface.first); |
50 |
51 |
const ifaceInfo prev { |
const ifaceInfo prev { |
|
... |
... |
void Network::update() |
67 |
68 |
result << speedColor |
result << speedColor |
68 |
69 |
<< std::setw(3) << rx << " k↓ " |
<< std::setw(3) << rx << " k↓ " |
69 |
70 |
<< std::setw(3) << tx << " k↑"; |
<< std::setw(3) << tx << " k↑"; |
|
71 |
|
if (i < static_cast<int>(ifaces.size()) - 1) { |
|
72 |
|
result << ' '; |
|
73 |
|
} |
70 |
74 |
} |
} |
71 |
75 |
|
|
72 |
76 |
Field::setText(result.str()); |
Field::setText(result.str()); |