equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com> |
3 * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com> |
4 * |
4 * |
5 * This program is free software; you can redistribute it and/or modify |
5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published by |
6 * it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation; version 2 of the License |
7 * the Free Software Foundation; version 2 of the License |
8 * |
8 * |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. |
12 * GNU General Public License for more details. |
13 * |
13 * |
14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software |
15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
17 */ |
17 */ |
18 |
18 |
19 #include <QHBoxLayout> |
19 #include <QHBoxLayout> |
20 #include <QLineEdit> |
20 #include <QLineEdit> |
21 #include <QTextBrowser> |
21 #include <QTextBrowser> |
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 quint32 pages = sysconf(_SC_PHYS_PAGES); |
269 quint32 pages = sysconf(_SC_PHYS_PAGES); |
270 quint32 page_size = sysconf(_SC_PAGE_SIZE); |
270 quint32 page_size = sysconf(_SC_PAGE_SIZE); |
271 quint32 total = pages * page_size / 1024 / 1024; |
271 quint64 total = (quint64)pages * page_size / 1024 / 1024; |
272 total_ram += QString::number(total) + " MB\n"; |
272 total_ram += QString::number(total) + " MB\n"; |
273 os_version += "GNU/Linux or BSD\n"; |
273 os_version += "GNU/Linux or BSD\n"; |
274 #endif |
274 #endif |
275 |
275 |
276 // uname -a |
276 // uname -a |