1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-27 17:18:33 +00:00

Teach freebsd.c to use the new CRIT_ERR format

Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Brenden Matthews <brenden@rty.ca>
This commit is contained in:
Nikos Ntarmos 2009-07-20 12:45:51 +03:00 committed by Brenden Matthews
parent d3013bc410
commit 739e47f9ec

View File

@ -306,7 +306,7 @@ void get_cpu_count(void)
info.cpu_usage = malloc(info.cpu_count * sizeof(float)); info.cpu_usage = malloc(info.cpu_count * sizeof(float));
if (info.cpu_usage == NULL) { if (info.cpu_usage == NULL) {
CRIT_ERR("malloc"); CRIT_ERR(NULL, NULL, "malloc");
} }
} }
@ -741,7 +741,7 @@ proc_find_top(struct process **cpu, struct process **mem)
/* we get total pages count again to be sure it is up to date */ /* we get total pages count again to be sure it is up to date */
if (GETSYSCTL("vm.stats.vm.v_page_count", total_pages) != 0) { if (GETSYSCTL("vm.stats.vm.v_page_count", total_pages) != 0) {
CRIT_ERR("Cannot read sysctl \"vm.stats.vm.v_page_count\""); CRIT_ERR(NULL, NULL, "Cannot read sysctl \"vm.stats.vm.v_page_count\"");
} }
p = kvm_getprocs(kd, KERN_PROC_PROC, 0, &n_processes); p = kvm_getprocs(kd, KERN_PROC_PROC, 0, &n_processes);