--- 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!