Small clean up.
* glibtop_server.h: Small clean up.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2004-06-08 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* glibtop_server.h: Small clean up.
|
||||
|
||||
2004-06-07 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* glibtop_machine.h (skip_token): Removed.
|
||||
@@ -10,7 +14,7 @@
|
||||
2004-05-26 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* cpu.c: (glibtop_get_cpu_s): Cleaned whitespaces.
|
||||
|
||||
|
||||
* open.c: (get_linux_version), (glibtop_open_s): Removed get_linux_version()
|
||||
Cleaned. Remove static struct utsname.
|
||||
|
||||
|
@@ -44,9 +44,7 @@ skip_token (const char *p)
|
||||
static inline char *
|
||||
skip_multiple_token (const char *p, size_t count)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
while(count--)
|
||||
p = skip_token (p);
|
||||
|
||||
return (char *)p;
|
||||
@@ -66,7 +64,7 @@ get_scaled(const char *buffer, const char *key)
|
||||
char *next;
|
||||
const size_t len = strlen(key);
|
||||
unsigned long long value = 0;
|
||||
|
||||
|
||||
if ((ptr = strstr(buffer, key)))
|
||||
{
|
||||
ptr += len;
|
||||
|
Reference in New Issue
Block a user