X-Git-Url: http://git.tdb.fi/?p=netvis.git;a=blobdiff_plain;f=source%2Fhost.h;h=ec2741d6b7127183381cb6f858b054b8d0fd5dc2;hp=b600dea04e3d9d315c865fbaabb3df7d69fc5e5b;hb=cc29ebb178d4695573f10a829534cb660e14e79d;hpb=26fb816da7078d687f7540e2e0a2d525801592f7 diff --git a/source/host.h b/source/host.h index b600dea..ec2741d 100644 --- a/source/host.h +++ b/source/host.h @@ -11,6 +11,7 @@ Distributed unter the GPL #include #include #include +#include "activity.h" #include "vector2.h" class NetVis; @@ -25,7 +26,7 @@ private: bool local; Vector2 pos; bool active; - float activity; + Activity activity; float throttle; public: @@ -41,7 +42,7 @@ public: void set_active(bool); bool get_active() const { return active; } void add_activity(unsigned); - float get_activity() const { return activity; } + float get_activity() const { return activity.get_average(); } float send_packet(); void tick(const Msp::Time::TimeDelta &);