Library used to fetch counter(s) from Munin. Data later can be presented on LCD etc.
Dependents: munin-display-board
Revision 2:f964e7c125a7, committed 2014-04-15
- Comitter:
- PrzemekWirkus
- Date:
- Tue Apr 15 09:33:10 2014 +0000
- Parent:
- 1:57dfa167adf7
- Commit message:
- Added constant buffer size instead of magic values.
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:30:44 2014 +0000 +++ b/munincli.h Tue Apr 15 09:33:10 2014 +0000 @@ -13,7 +13,7 @@ namespace { // Munin command(s): -int MUNIN_BUFFER_SIZE = 256; +const int MUNIN_BUFFER_SIZE = 256; } /** MuninClient class, used to fetch counters from Munin @@ -149,7 +149,7 @@ protected: EthernetInterface eth; TCPSocketConnection socket; - char buf[256]; + char buf[MUNIN_BUFFER_SIZE]; // String explode function std::vector<std::string> explode(std::string const &s, char delim) {