diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2018-06-15 09:53:48 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-06-15 09:53:48 +0200 |
commit | 9b7cbda6a873acbee0bf66f3080efa7ab7d4e5ad (patch) | |
tree | 9a5cca6a08eb3d79df5c24055d5133947ac10a2b /src/ipcpd | |
parent | 3a570b35c653cfe6f40fab67e944e9bd44065976 (diff) | |
parent | 4356a8dce299eb84cbafa2edd0bbd252a6a4c335 (diff) | |
download | ouroboros-9b7cbda6a873acbee0bf66f3080efa7ab7d4e5ad.tar.gz ouroboros-9b7cbda6a873acbee0bf66f3080efa7ab7d4e5ad.zip |
Merge branch 'testing' into be
Diffstat (limited to 'src/ipcpd')
-rw-r--r-- | src/ipcpd/normal/dt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipcpd/normal/dt.c b/src/ipcpd/normal/dt.c index 9ab16460..397169f3 100644 --- a/src/ipcpd/normal/dt.c +++ b/src/ipcpd/normal/dt.c @@ -56,7 +56,8 @@ #include <inttypes.h> #include <assert.h> -#define STAT_FILE_LEN 2205 +#define QOS_BLOCK_LEN 672 +#define STAT_FILE_LEN (189 + QOS_BLOCK_LEN * QOS_CUBE_MAX) #ifndef CLOCK_REALTIME_COARSE #define CLOCK_REALTIME_COARSE CLOCK_REALTIME @@ -110,7 +111,7 @@ static int dt_stat_read(const char * path, #ifdef IPCP_FLOW_STATS int fd; int i; - char str[681]; + char str[QOS_BLOCK_LEN + 1]; char addrstr[20]; char tmstr[20]; size_t rxqlen = 0; |