mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-19 00:53:19 +00:00
multicpu1sec-c: opening the file r/w to truncate it
This commit is contained in:
parent
c86e4ab2fd
commit
6dec8c3357
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ int acquire() {
|
||||||
|
|
||||||
int fetch() {
|
int fetch() {
|
||||||
printf("fetch()\n");
|
printf("fetch()\n");
|
||||||
FILE* cache_file = fopen(cache_filename, "r");
|
FILE* cache_file = fopen(cache_filename, "r+");
|
||||||
|
|
||||||
/* cat the cache_file to stdout */
|
/* cat the cache_file to stdout */
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue