New file. (GLIBTOP_MAX_CPU): Define this here and increase it to 256.

1999-04-18  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/limits.h: New file.
	(GLIBTOP_MAX_CPU): Define this here and increase it to 256.
This commit is contained in:
Martin Baulig
1999-04-18 11:36:42 +00:00
committed by Martin Baulig
parent 58acfc4042
commit eca34c37d9
5 changed files with 46 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
1999-04-18 Martin Baulig <martin@home-of-linux.org>
* include/glibtop/limits.h: New file.
(GLIBTOP_NCPU): Define this here and increase it to 256.
1999-03-30 Martin Baulig <martin@home-of-linux.org> 1999-03-30 Martin Baulig <martin@home-of-linux.org>
Added some new features. Added some new features.

View File

@@ -25,6 +25,7 @@
#define __GLIBTOP_H__ #define __GLIBTOP_H__
#include <glibtop/global.h> #include <glibtop/global.h>
#include <glibtop/limits.h>
#include <glibtop_server.h> #include <glibtop_server.h>
#include <glibtop/types.h> #include <glibtop/types.h>

View File

@@ -7,4 +7,5 @@ glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
procsegment.h read.h sysdeps.h xmalloc.h global.h \ procsegment.h read.h sysdeps.h xmalloc.h global.h \
procsignal.h read_data.h union.h types.h gnuserv.h \ procsignal.h read_data.h union.h types.h gnuserv.h \
parameter.h mountlist.h fsusage.h procmap.h signal.h \ parameter.h mountlist.h fsusage.h procmap.h signal.h \
inodedb.h sysinfo.h ppp.h procargs.h netload.h inodedb.h sysinfo.h ppp.h procargs.h netload.h \
limits.h

View File

@@ -46,9 +46,6 @@ BEGIN_LIBGTOP_DECLS
#define GLIBTOP_MAX_CPU 11 #define GLIBTOP_MAX_CPU 11
/* Nobody should really be using more than 4 processors. */
#define GLIBTOP_NCPU 4
typedef struct _glibtop_cpu glibtop_cpu; typedef struct _glibtop_cpu glibtop_cpu;
struct _glibtop_cpu struct _glibtop_cpu

38
include/glibtop/limits.h Normal file
View File

@@ -0,0 +1,38 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#ifndef __GLIBTOP_LIMITS_H__
#define __GLIBTOP_LIMITS_H__
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
/* Nobody should really be using more than 256 processors. */
#define GLIBTOP_NCPU 256
END_LIBGTOP_DECLS
#endif