cleanup iface.c (thanks M. Dolze)

This commit is contained in:
marschap committed 2006-05-07 17:32:35 +00:00
1 parent 08bb695d8d
commit c6a1f841a7
15 files changed
+132 -528

No files matched your search

+6 -6
View File
@@ -15,7 +15,7 @@
* 3. Neither the name of the author nor the names of its contributors
* may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
@@ -146,11 +146,11 @@ int machine_get_fs(mounts_type fs[], int *cnt)
{
struct statfs *mntbuf;
struct statfs *pp;
int statcnt, fscnt, i;
int statcnt, fscnt, i;
fscnt = getmntinfo(&mntbuf, MNT_WAIT);
if (fscnt == 0)
{
if (fscnt == 0)
{
perror("getmntinfo");
return(FALSE);
}
@@ -295,7 +295,7 @@ int machine_get_procs(LinkedList *procs)
kprocs = kvm_getprocs(kvmd, KERN_PROC_ALL, 0, &nproc);
if (kprocs == NULL)
{
{
perror("kvm_getprocs");
kvm_close(kvmd);
return(FALSE);
@@ -382,7 +382,7 @@ int machine_get_uptime(double *up, double *idle)
else
*idle = 100.*curr_load.idle/curr_load.total;
return(TRUE);
return(TRUE);
}
static int swapmode(int *retavail, int *retfree)