summaryrefslogtreecommitdiff
path: root/get_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'get_load.c')
-rw-r--r--get_load.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/get_load.c b/get_load.c
index 026ec6b..cb4e4f4 100644
--- a/get_load.c
+++ b/get_load.c
@@ -142,9 +142,6 @@ void GetLoadPoint(
# include <sys/param.h>
# endif
-# ifdef sgi
-# define FSCALE 1024.0
-# endif
# ifdef __osf__
/*
@@ -521,11 +518,6 @@ void GetLoadPoint(
# define KERNEL_FILE "/hp-ux"
# endif /* hpux */
-# ifdef sgi
-# if (OSMAJORVERSION > 4)
-# define KERNEL_FILE "/unix"
-# endif
-# endif
/*
* provide default for everyone else
@@ -569,9 +561,6 @@ void GetLoadPoint(
# endif /* hp9000s800 */
# endif /* hpux */
-# ifdef sgi
-# define KERNEL_LOAD_VARIABLE "avenrun"
-# endif /* sgi */
# endif /* KERNEL_LOAD_VARIABLE */
@@ -603,7 +592,7 @@ static long loadavg_seek;
void InitLoadPoint()
{
-# if !defined(SVR4) && !defined(sgi) && !defined(AIXV5) && !(BSD >= 199103) && !defined(__APPLE__)
+# if !defined(SVR4) && !defined(AIXV5) && !(BSD >= 199103) && !defined(__APPLE__)
extern void nlist();
# endif
@@ -634,13 +623,13 @@ void GetLoadPoint( w, closure, call_data )
(void) lseek(kmem, loadavg_seek, 0);
-# if defined(SVR4) || defined(sgi) || (BSD >= 199103)
+# if defined(SVR4) || (BSD >= 199103)
{
long temp;
(void) read(kmem, (char *)&temp, sizeof(long));
*loadavg = (double)temp/FSCALE;
}
-# else /* else not SVR4 or sgi or BSD */
+# else /* else not SVR4 or BSD */
(void) read(kmem, (char *)loadavg, sizeof(double));
# endif /* SVR4 or ... else */
return;