We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 846bd4d commit 143c3dcCopy full SHA for 143c3dc
2 files changed
src/OVAL/probes/unix/password_probe.c
@@ -110,7 +110,7 @@ static struct passwd *oscap_fgetpwent(FILE *fp)
110
continue;
111
}
112
113
- if (line[0] == '#' || line[0] == '\n')
+ if (line[0] == '#')
114
115
f = 0;
116
p = line;
src/common/memusage.c
@@ -370,8 +370,8 @@ int oscap_proc_memusage(struct proc_memusage *mu)
370
errno = EOPNOTSUPP;
371
return -1;
372
373
- mu->mu_rss = info.resident_size / 1024;
374
- mu->mu_data = info.virtual_size / 1024;
+ mu->mu_rss = BYTES_TO_KIB(info.resident_size);
+ mu->mu_data = BYTES_TO_KIB(info.virtual_size);
375
/* TASK_BASIC_INFO doesn't expose peak RSS; use current as approximation */
376
mu->mu_hwm = mu->mu_rss;
377
mu->mu_text = 0;
0 commit comments