summaryrefslogtreecommitdiffstats
path: root/src/Net/Packets/HostListPacket.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-20 11:59:36 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-20 11:59:36 +0200
commit89551ddfc2879530981eba3db9ab857b88409ad8 (patch)
treeb0fa2c3d84201a3bce8d46c002a2e506a95f1c24 /src/Net/Packets/HostListPacket.h
parent5286ffcb30e3005569199c45bca38dfbf346cec3 (diff)
downloadmad-89551ddfc2879530981eba3db9ab857b88409ad8.tar
mad-89551ddfc2879530981eba3db9ab857b88409ad8.zip
Lese /proc/loadavg f?r weitere Statusinformationen aus
Diffstat (limited to 'src/Net/Packets/HostListPacket.h')
-rw-r--r--src/Net/Packets/HostListPacket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Net/Packets/HostListPacket.h b/src/Net/Packets/HostListPacket.h
index aba6461..4d0b2d0 100644
--- a/src/Net/Packets/HostListPacket.h
+++ b/src/Net/Packets/HostListPacket.h
@@ -61,6 +61,13 @@ class HostListPacket : public Packet {
return *this;
}
+ HostListPacket& operator=(const HostListPacket &p) {
+ Packet::operator=(p);
+ parsePacket();
+
+ return *this;
+ }
+
const std::vector<Common::HostInfo>& getHostInfo() const {
return hostList;
}