diff --git a/plugins/system/multicpu1sec/multicpu1sec-c.c b/plugins/system/multicpu1sec/multicpu1sec-c.c index e3c02956..5c99d831 100644 --- a/plugins/system/multicpu1sec/multicpu1sec-c.c +++ b/plugins/system/multicpu1sec/multicpu1sec-c.c @@ -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];