mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
p/multicpu1sec-c: always exit(0) when successful
This commit is contained in:
parent
066bec8d0b
commit
c5238dbc5f
1 changed files with 4 additions and 0 deletions
|
@ -166,6 +166,8 @@ int acquire() {
|
||||||
|
|
||||||
close(cache_file);
|
close(cache_file);
|
||||||
close(f);
|
close(f);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int fetch() {
|
int fetch() {
|
||||||
|
@ -182,6 +184,8 @@ int fetch() {
|
||||||
|
|
||||||
ftruncate(fileno(cache_file), 0);
|
ftruncate(fileno(cache_file), 0);
|
||||||
fclose(cache_file);
|
fclose(cache_file);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue