diff options
author | Patrick Simianer <p@simianer.de> | 2011-11-16 10:51:47 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-11-16 10:51:47 +0100 |
commit | a31b9b2bfdb232cc8fb2e4f05326c01c0cd2323d (patch) | |
tree | 6852d06067e571a88bc86c37896c934bfc99d1f8 /dtrain/dtrain.h | |
parent | 4cd25af7a5f8ff9c0e9f6c08c46ca6969f539f7b (diff) |
hadoop doesn't like double as amounts in counters
Diffstat (limited to 'dtrain/dtrain.h')
-rw-r--r-- | dtrain/dtrain.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/dtrain/dtrain.h b/dtrain/dtrain.h index cfc3f460..1b33c081 100644 --- a/dtrain/dtrain.h +++ b/dtrain/dtrain.h @@ -57,15 +57,10 @@ struct HSReporter string task_id_; HSReporter(string task_id) : task_id_(task_id) {} - inline void update_counter(string name, weight_t amount) { - cerr << "reporter:counter:" << task_id_ << "," << name << "," << amount << endl; - } + inline void update_counter(string name, unsigned amount) { cerr << "reporter:counter:" << task_id_ << "," << name << "," << amount << endl; } - inline void update_gcounter(string name, weight_t amount) { - cerr << "reporter:counter:Global," << name << "," << amount << endl; - } inline void update_gcounter(string name, unsigned amount) { cerr << "reporter:counter:Global," << name << "," << amount << endl; } |