Library used to fetch counter(s) from Munin. Data later can be presented on LCD etc.
Dependents: munin-display-board
Revision 1:57dfa167adf7, committed 2014-04-15
- Comitter:
- PrzemekWirkus
- Date:
- Tue Apr 15 09:30:44 2014 +0000
- Parent:
- 0:27ea815508ee
- Child:
- 2:f964e7c125a7
- Commit message:
- Removed unnecessary printfs.
Changed in this revision
munincli.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/munincli.h Tue Apr 15 09:27:18 2014 +0000 +++ b/munincli.h Tue Apr 15 09:30:44 2014 +0000 @@ -101,7 +101,6 @@ const int n = socket.receive(buf, sizeof(buf) - 1); if (n > 0) { buf[n] = '\0'; - printf("RECV: %s\r\n", buf); } return n; } @@ -112,7 +111,6 @@ const int n = socket.receive_all(buf, sizeof(buf) - 1); if (n > 0) { buf[n] = '\0'; - printf("RECV: %s\r\n", buf); } return n; } @@ -137,13 +135,10 @@ // For each counter name get its name and if name matches param_name extract and return counter value for (std::vector<std::string>::iterator it = s.begin(); it != s.end(); ++it) { std::string ¶m = *it; - printf("PARAM_RECV: %s\r\n", param.c_str()); if (!param.compare(0, param_name.size(), param_name)) { - printf("PARAM_FOUND: %s is '%s' \r\n", param.c_str(), param_name.c_str()); std::vector<std::string> name_value = explode(param, ' '); if (name_value.size() == 2) { const int val = atoi(name_value[1].c_str()); - printf("DISPLAYING: %s\r\n", name_value[1].c_str()); return val; } }