summaryrefslogtreecommitdiff
path: root/lib/block_handlers.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-02-13 01:18:31 -0800
committerJosh Blum2013-02-17 20:53:28 -0600
commit67e0e06f155f4a2eeecafabd4c63b840b41b0709 (patch)
tree126978cbb26297286153c492ff2f5e9d6c5fe8f8 /lib/block_handlers.cpp
parent9191fbce9f4d161e4f871231469ef009c86f177f (diff)
downloadsandhi-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.cpp11
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
+}