diff options
author | Josh Blum | 2013-02-13 01:18:31 -0800 |
---|---|---|
committer | Josh Blum | 2013-02-17 20:53:28 -0600 |
commit | 67e0e06f155f4a2eeecafabd4c63b840b41b0709 (patch) | |
tree | 126978cbb26297286153c492ff2f5e9d6c5fe8f8 /lib/block_handlers.cpp | |
parent | 9191fbce9f4d161e4f871231469ef009c86f177f (diff) | |
download | sandhi-67e0e06f155f4a2eeecafabd4c63b840b41b0709.tar.gz sandhi-67e0e06f155f4a2eeecafabd4c63b840b41b0709.tar.bz2 sandhi-67e0e06f155f4a2eeecafabd4c63b840b41b0709.zip |
gras: work on stats messages and xml formatting
Diffstat (limited to 'lib/block_handlers.cpp')
-rw-r--r-- | lib/block_handlers.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/block_handlers.cpp b/lib/block_handlers.cpp index f7a6e9e..af0fc20 100644 --- a/lib/block_handlers.cpp +++ b/lib/block_handlers.cpp @@ -129,3 +129,14 @@ void BlockActor::handle_self_kick( MESSAGE_TRACER(); this->handle_task(); } + +void BlockActor::handle_get_stats( + const GetStatsMessage &, + const Theron::Address from +){ + GetStatsMessage message; + message.block_id = this->block_ptr->to_string(); + message.stats = this->stats; + message.stats_time = time_now(); + this->Send(message, from); //ACK +} |