Fix FreeBSD plugin Codacy issues (#5338)

This commit is contained in:
Vladimir Kobal 2019-02-06 15:07:42 +02:00 committed by GitHub
parent d1ebd8a057
commit ad6fdf8ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -104,11 +104,11 @@ int do_kstat_zfs_misc_arcstats(int update_every, usec_t dt) {
// int arc_loaned_bytes[5];
// int arc_prune[5];
// int arc_meta_used[5];
int arc_meta_limit[5];
int arc_meta_max[5];
int arc_meta_min[5];
int arc_need_free[5];
int arc_sys_free[5];
// int arc_meta_limit[5];
// int arc_meta_max[5];
// int arc_meta_min[5];
// int arc_need_free[5];
// int arc_sys_free[5];
} mibs;
arcstats.l2exist = -1;

View File

@ -590,7 +590,6 @@ int do_hw_intcnt(int update_every, usec_t dt) {
unsigned long nintr = 0;
static unsigned long old_nintr = 0;
static unsigned long *intrcnt = NULL;
unsigned long i;
nintr = intrcnt_size / sizeof(u_long);
if (unlikely(nintr != old_nintr))
@ -602,6 +601,7 @@ int do_hw_intcnt(int update_every, usec_t dt) {
return 1;
} else {
unsigned long long totalintr = 0;
unsigned long i;
for (i = 0; i < nintr; i++)
totalintr += intrcnt[i];