Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
It works but I still get wonky drive issues. The drive it doesn't work on is a Tiger drive (Legally obtained).
 
Hoef said:
Are you pulling all my senstive info, keystrokes and credit card info? :p
Nope, remember OS X is so secure, the app would require admin authentication a thousand times before even remotely being able to do that :D I'll publish the full source code in a giffy ;)
 
I'm a little confused. I have a 1 GHz PB but program says CPU frequency 667 MHZ :confused:
 

Attachments

  • software specs copy.jpg
    software specs copy.jpg
    45.6 KB · Views: 69
Vster said:
Here you go :)
Is the PowerBook running on automatic CPU mode? In that case, iNfo reports the actual CPU speed, which is 5*bus speed, whereas the system tool probably reports the max speed, 7.5*bus speed, or almost 1 GHz.

iNfo gets its information from the sysctl(1) utility, which polls the hardware and asks about information, in this case, the CPU speed, whereas About This Mac reads the CPU Identifier string using IOKit or similar.

Here's my libSysCtl which uses the command-line utility to avoid sysctl(3) return size problems:

Code:
/* libSysCtl 1.0
    Copyright (C) David H. Kristensen 2005-X
    Licensed under the 3-clause BSD license */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

char * SysCtl_Get(char * string) {
        char out[128];
        char * bfr = (char*)malloc(128);
        strcpy((char*)&out, "sysctl ");
        strcat((char*)&out, string);
        strcat((char*)&out, " > .libsysctl-tmp");
        system(out);
        FILE * xpo = fopen(".libsysctl-tmp", "r");
        int i = 0, a;
        int is_commated = 0;
        while( (a=fgetc(xpo))!=EOF ) {
                if(is_commated == 0 && (a == ':' || a == '=')) {
                        is_commated = 1;
                }
                else if(a == '\n') {
                        is_commated = 0;
                }
                else if(is_commated==1) {
                        bfr[i++] = a;
                }
        }
        fclose(xpo);
        bfr[i] = '\0';
        system("rm .libsysctl-tmp");
        return bfr;
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.