Only changed indentation.

This commit is contained in:
Martin Baulig
1998-07-13 22:34:23 +00:00
parent b991ecaf9a
commit 49adb94af0
4 changed files with 7 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ glibtop *glibtop_global_server = NULL;
glibtop *
glibtop_init_r (glibtop **server, const unsigned long features,
const unsigned flags)
const unsigned flags)
{
if (*server != NULL)
return *server;
@@ -37,7 +37,7 @@ glibtop_init_r (glibtop **server, const unsigned long features,
if (glibtop_global_server == NULL) {
glibtop_global_server = &_glibtop_global_server;
glibtop_open_r (glibtop_global_server, "glibtop",
features, flags);
features, flags);
}
return *server = glibtop_global_server;

View File

@@ -48,7 +48,8 @@ glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
if (!f) return;
fscanf (f, "%*[^\n]\nMem: %lu %lu %lu %lu %lu %lu\n",
&buf->total, &buf->used, &buf->free, &buf->shared, &buf->buffer, &buf->cached);
&buf->total, &buf->used, &buf->free, &buf->shared,
&buf->buffer, &buf->cached);
buf->user = buf->total - buf->free - buf->shared - buf->buffer;

View File

@@ -52,7 +52,7 @@ static void set_linux_version(void) {
void
glibtop_open_r (glibtop *server, const char *program_name,
const unsigned long features, const unsigned flags)
const unsigned long features, const unsigned flags)
{
memset (server, 0, sizeof (glibtop));
server->name = program_name;

View File

@@ -27,7 +27,7 @@ glibtop *glibtop_global_server = NULL;
glibtop *
glibtop_init_r (glibtop **server, const unsigned long features,
const unsigned flags)
const unsigned flags)
{
if (*server != NULL)
return *server;
@@ -35,7 +35,7 @@ glibtop_init_r (glibtop **server, const unsigned long features,
if (glibtop_global_server == NULL) {
glibtop_global_server = &_glibtop_global_server;
glibtop_open_r (glibtop_global_server, "glibtop",
features, flags);
features, flags);
}
return *server = glibtop_global_server;