summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5ed3c9)
raw | patch | inline | side by side (parent: b5ed3c9)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 23 Nov 2009 21:25:32 +0000 (22:25 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 23 Nov 2009 21:25:32 +0000 (22:25 +0100) |
src/disk.c | patch | blob | history | |
src/interface.c | patch | blob | history | |
src/load.c | patch | blob | history | |
src/memory.c | patch | blob | history | |
src/processes.c | patch | blob | history | |
src/swap.c | patch | blob | history |
diff --git a/src/disk.c b/src/disk.c
index 5df1c9827b465d136e185fa9b15925d142912c10..94257feff7d9cd7d6e65cbed1f173cb2e35f969a 100644 (file)
--- a/src/disk.c
+++ b/src/disk.c
{
#if HAVE_IOKIT_IOKITLIB_H
kern_return_t status;
-
+
if (io_master_port != MACH_PORT_NULL)
{
mach_port_deallocate (mach_task_self (),
diff --git a/src/interface.c b/src/interface.c
index fead88859c08fd5e429a973a1bd79d9ed7898c12..8557cb100457fd073ac0842ed4b1e7b9e9f53a65 100644 (file)
--- a/src/interface.c
+++ b/src/interface.c
char buffer[1024];
unsigned long long incoming, outgoing;
char *device;
-
+
char *dummy;
char *fields[16];
int numfields;
if (device[0] == '\0')
continue;
-
+
numfields = strsplit (dummy, fields, 16);
if (numfields < 11)
diff --git a/src/load.c b/src/load.c
index cf5221b278a425688845df5e9ff75b30b6e05501..575b4ca44d8698258a636602df47f2ec0da76c67 100644 (file)
--- a/src/load.c
+++ b/src/load.c
char *fields[8];
int numfields;
-
+
if ((loadavg = fopen ("/proc/loadavg", "r")) == NULL)
{
char errbuf[1024];
diff --git a/src/memory.c b/src/memory.c
index 799a80c31684c963172fa89363e9f931c24f4886..e0e0cbb163eebab1441ef91e7ebf3b70496aab02 100644 (file)
--- a/src/memory.c
+++ b/src/memory.c
#elif KERNEL_LINUX
FILE *fh;
char buffer[1024];
-
+
char *fields[8];
int numfields;
diff --git a/src/processes.c b/src/processes.c
index 5ef4acc039907743d1f22180f23871ec5f9ce326..35f99a9b1796f7ffc4844cf8d46565121330fd13 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
return;
}
#endif
-
+
for (ptr = list_head_g; ptr != NULL; ptr = ptr->next)
{
if (strcmp (ptr->name, name) == 0)
@@ -319,13 +319,13 @@ static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t
if ((pse == NULL) || (pse->id != entry->id))
{
procstat_entry_t *new;
-
+
new = (procstat_entry_t *) malloc (sizeof (procstat_entry_t));
if (new == NULL)
return;
memset (new, 0, sizeof (procstat_entry_t));
new->id = entry->id;
-
+
if (pse == NULL)
ps->instances = new;
else
@@ -377,7 +377,7 @@ static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t
pse->vmem_minflt = entry->vmem_minflt_counter - pse->vmem_minflt_counter;
}
pse->vmem_minflt_counter = entry->vmem_minflt_counter;
-
+
if (entry->vmem_majflt_counter < pse->vmem_majflt_counter)
{
pse->vmem_majflt = entry->vmem_majflt_counter
@@ -414,7 +414,7 @@ static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t
pse->cpu_user = entry->cpu_user_counter - pse->cpu_user_counter;
}
pse->cpu_user_counter = entry->cpu_user_counter;
-
+
if (entry->cpu_system_counter < pse->cpu_system_counter)
{
pse->cpu_system = entry->cpu_system_counter
diff --git a/src/swap.c b/src/swap.c
index 22eda1f5aaf853e5cfdc911cbcc6e8af62738744..6ccae563f5888a1ee8c1a02a16328e81b1b35986 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
#if KERNEL_LINUX
FILE *fh;
char buffer[1024];
-
+
char *fields[8];
int numfields;