1
0
Fork 0
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:
Steve Schnepp 2015-05-30 08:42:38 +00:00
parent 066bec8d0b
commit c5238dbc5f

View file

@ -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) {