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:
parent
c86e4ab2fd
commit
6dec8c3357
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user