2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

multicpu1sec-c: opening the file r/w to truncate it

This commit is contained in:
Steve Schnepp 2015-03-03 22:35:46 +00:00
parent c86e4ab2fd
commit 6dec8c3357

View File

@ -126,7 +126,7 @@ int acquire() {
int fetch() {
printf("fetch()\n");
FILE* cache_file = fopen(cache_filename, "r");
FILE* cache_file = fopen(cache_filename, "r+");
/* cat the cache_file to stdout */
char buffer[1024];