"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libsysinfo-0.2.2/SunOS/sysinfo_solaris.c" between
linux_logo-5.11.tar.gz and linux_logo-6.0.tar.gz

About: Linux_Logo - an ANSI Color Penguin Logo that can be run at bootup. Also shows some system info.

sysinfo_solaris.c  (linux_logo-5.11):sysinfo_solaris.c  (linux_logo-6.0)
skipping to change at line 126 skipping to change at line 126
/* we support -p option... */ /* we support -p option... */
pipe=popen("/usr/sbin/psrinfo -p -v","r"); pipe=popen("/usr/sbin/psrinfo -p -v","r");
fgets(string,BUFSIZ,pipe); /* ignore line */ fgets(string,BUFSIZ,pipe); /* ignore line */
fscanf(pipe,"%64s %*s %*s %*s %f",cpu_info->chip_type, fscanf(pipe,"%64s %*s %*s %*s %f",cpu_info->chip_type,
&cpu_info->megahertz); &cpu_info->megahertz);
pclose(pipe); pclose(pipe);
} }
return 0; return 0;
} }
double get_cpu_mhz(void) {
struct cpu_info_type cpu_info;
get_cpu_info(&cpu_info);
return (double)cpu_info.megahertz;
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)