QTfrontend/ui/widget/feedbackdialog.cpp
changeset 9335 f1ac1aa3f88d
parent 9325 2d686849eead
child 9393 094a176dd623
equal deleted inserted replaced
9333:972fa9ecd587 9335:f1ac1aa3f88d
   264     }
   264     }
   265     kernel_line += "Windows kernel\n";
   265     kernel_line += "Windows kernel\n";
   266 #endif
   266 #endif
   267 #ifdef Q_OS_LINUX
   267 #ifdef Q_OS_LINUX
   268     number_of_cores += QString::number(sysconf(_SC_NPROCESSORS_ONLN)) + "\n";
   268     number_of_cores += QString::number(sysconf(_SC_NPROCESSORS_ONLN)) + "\n";
   269     long pages = sysconf(_SC_PHYS_PAGES),
   269     quint32 pages = sysconf(_SC_PHYS_PAGES);
   270 /*
       
   271 #ifndef Q_OS_FREEBSD
       
   272          available_pages = sysconf(_SC_AVPHYS_PAGES),
       
   273 #else
       
   274          available_pages = 0,
       
   275 #endif*/
       
   276     quint32 page_size = sysconf(_SC_PAGE_SIZE);
   270     quint32 page_size = sysconf(_SC_PAGE_SIZE);
   277     quint32 total = pages * page_size / 1024 / 1024;
   271     quint32 total = pages * page_size / 1024 / 1024;
   278     total_ram += QString::number(total) + " MB\n";
   272     total_ram += QString::number(total) + " MB\n";
   279     os_version += "GNU/Linux or BSD\n";
   273     os_version += "GNU/Linux or BSD\n";
   280 #endif
   274 #endif