*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Fri, 04 Jun 1999 09:49:53 +0200
changeset 4258 4c1f909de78e
parent 4257 968bc96fd137
child 4259 b6f76b521dda
*** empty log message ***
UnixOS.st
UnixOperatingSystem.st
--- a/UnixOS.st	Wed Jun 02 18:23:46 1999 +0200
+++ b/UnixOS.st	Fri Jun 04 09:49:53 1999 +0200
@@ -6586,6 +6586,12 @@
 # endif /* GSI_CPU */
 
 # if defined(GSI_CPU_INFO)
+ 	/*
+	 * stupid: OSF1 has no mhz, but newer releases have it.
+	 * use the GSI_PLATFORM_NAME as a hint - it is only defined in
+	 * the new OSF ... (sigh)
+	 */
+#  if defined GSI_PLATFORM_NAME
 	{
 	    struct cpu_info cpuInfo;
 
@@ -6594,6 +6600,7 @@
 		cpuSpeed   = __MKUINT(cpuInfo.mhz);
 	    }
 	}
+#  endif
 # endif /* GSI_CPU_INFO */
 
 # if defined(GSI_CPUS_IN_BOX)
@@ -8597,6 +8604,6 @@
 !UnixOperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Attic/UnixOS.st,v 1.61 1999-05-21 22:51:09 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Attic/UnixOS.st,v 1.62 1999-06-04 07:49:53 cg Exp $'
 ! !
 UnixOperatingSystem initialize!
--- a/UnixOperatingSystem.st	Wed Jun 02 18:23:46 1999 +0200
+++ b/UnixOperatingSystem.st	Fri Jun 04 09:49:53 1999 +0200
@@ -6586,6 +6586,12 @@
 # endif /* GSI_CPU */
 
 # if defined(GSI_CPU_INFO)
+ 	/*
+	 * stupid: OSF1 has no mhz, but newer releases have it.
+	 * use the GSI_PLATFORM_NAME as a hint - it is only defined in
+	 * the new OSF ... (sigh)
+	 */
+#  if defined GSI_PLATFORM_NAME
 	{
 	    struct cpu_info cpuInfo;
 
@@ -6594,6 +6600,7 @@
 		cpuSpeed   = __MKUINT(cpuInfo.mhz);
 	    }
 	}
+#  endif
 # endif /* GSI_CPU_INFO */
 
 # if defined(GSI_CPUS_IN_BOX)
@@ -8597,6 +8604,6 @@
 !UnixOperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.61 1999-05-21 22:51:09 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.62 1999-06-04 07:49:53 cg Exp $'
 ! !
 UnixOperatingSystem initialize!