"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libsysinfo-0.2.2/FreeBSD/sysinfo_bsd.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_bsd.c  (linux_logo-5.11):sysinfo_bsd.c  (linux_logo-6.0)
skipping to change at line 86 skipping to change at line 86
char *get_host_name(char *hostname,char *domain) { char *get_host_name(char *hostname,char *domain) {
return uname_get_host_name(hostname,domain); return uname_get_host_name(hostname,domain);
} }
long long get_mem_size(void) { long long get_mem_size(void) {
int ctl_ram[] = { CTL_HW, HW_PHYSMEM }; int ctl_ram[] = { CTL_HW, HW_PHYSMEM };
long long mem_size=0; long long mem_size=0;
int val_int; size_t val_int=0;
int val_len; size_t val_len=0;
val_len = sizeof(val_int); val_len = sizeof(val_int);
if (sysctl(ctl_ram, SIZE(ctl_ram), &val_int, &val_len,0,0)) if (sysctl(ctl_ram, SIZE(ctl_ram), &val_int, &val_len,0,0))
perror("sysctl"); perror("sysctl");
else { else {
mem_size=(val_int/1000000); mem_size=(val_int/1000000);
} }
return mem_size; return mem_size;
} }
double get_cpu_mhz(void) {
struct cpu_info_type cpu_info;
get_cpu_info(&cpu_info);
return (double)cpu_info.megahertz;
}
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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