Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
diff -r 57dfa167adf7 -r f964e7c125a7 munincli.h
--- 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) {