imported upstream release 0.4.0.

ubuntu/cosmic
Alf Gaida 7 years ago
parent 2ea6751dbf
commit bba55ad105

@ -0,0 +1,35 @@
<!--- Provide a general summary of the issue in the Title above -->
<!--- You could delete sections and/or questions irrelevant to your report --->
##### Expected Behavior
<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->
##### Current Behavior
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
##### Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement the addition or change -->
##### Steps to Reproduce (for bugs)
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.
3.
4.
##### Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
##### System Information
<!--- Include as many relevant details about the system you experienced the bug in -->
* Distribution & Version:
* Kernel:
* Qt Version:
* libqtxdg Version:
* lxde-build-tools Version:
* Package version:

@ -5,7 +5,7 @@ Upstream Authors:
Copyright: Copyright:
Copyright (c) 2012 Razor team Copyright (c) 2012 Razor team
Copyright (c) 2012-2016 LXQt team Copyright (c) 2012-2017 LXQt team
License: LGPL-2.1+ License: LGPL-2.1+
The full text of the licenses can be found in the 'COPYING' file. The full text of the licenses can be found in the 'COPYING' file.

@ -1,7 +1,19 @@
libsysstat-0.3.3 / 2016-12-11 libsysstat-0.4.0 / 2017-09-23
============================= =============================
* correct spelling mistake
* bump version and needed version of lxqt-build-tools
* liblxqt make no sense here
* Copied issue template
* Drops Qt5Core_VERSION_STRING
* Fixes (#17)
* Bump years
0.3.3 / 2016-12-11
==================
* Release 0.3.3: Update changelog
* Bump patch version to 3 * Bump patch version to 3
* Simplify include_directories and compile definitions * Simplify include_directories and compile definitions
* Adds Building project name and Qt version message * Adds Building project name and Qt version message

@ -3,11 +3,11 @@ cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(libsysstat) project(libsysstat)
set(MAJOR_VERSION 0) set(MAJOR_VERSION 0)
set(MINOR_VERSION 3) set(MINOR_VERSION 4)
set(PATCH_VERSION 3) set(PATCH_VERSION 0)
set(SYSSTAT_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}") set(SYSSTAT_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
set(LXQTBT_MINIMUM_VERSION "0.1.0") set(LXQTBT_MINIMUM_VERSION "0.4.0")
set(QT_MINIMUM_VERSION "5.4.2") set(QT_MINIMUM_VERSION "5.4.2")
# additional cmake files # additional cmake files
@ -15,7 +15,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED) find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
find_package(Qt5Core ${QT_MINIMUM_VERSION} REQUIRED) find_package(Qt5Core ${QT_MINIMUM_VERSION} REQUIRED)
message(STATUS "Building ${PROJECT_NAME} with Qt ${Qt5Core_VERSION_STRING}") message(STATUS "Building ${PROJECT_NAME} with Qt ${Qt5Core_VERSION}")
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
include(GNUInstallDirs) # Standard directories for installation include(GNUInstallDirs) # Standard directories for installation

@ -62,7 +62,7 @@ void CpuStatPrivate::updateSources()
{ {
mSources.clear(); mSources.clear();
foreach (QString row, readAllFile("/proc/stat").split(QChar('\n'), QString::SkipEmptyParts)) foreach (const QString &row, readAllFile("/proc/stat").split(QChar('\n'), QString::SkipEmptyParts))
{ {
QStringList tokens = row.split(QChar(' '), QString::SkipEmptyParts); QStringList tokens = row.split(QChar(' '), QString::SkipEmptyParts);
if( (tokens.size() < 5) if( (tokens.size() < 5)
@ -76,15 +76,15 @@ void CpuStatPrivate::updateSources()
bool ok; bool ok;
foreach (QString range, readAllFile("/sys/devices/system/cpu/online").split(QChar(','), QString::SkipEmptyParts)) foreach (const QString &range, readAllFile("/sys/devices/system/cpu/online").split(QChar(','), QString::SkipEmptyParts))
{ {
int dash = range.indexOf('-'); int dash = range.indexOf('-');
if (dash != -1) if (dash != -1)
{ {
uint min = range.left(dash).toUInt(&ok); uint min = range.leftRef(dash).toUInt(&ok);
if (ok) if (ok)
{ {
uint max = range.mid(dash + 1).toUInt(&ok); uint max = range.midRef(dash + 1).toUInt(&ok);
if (ok) if (ok)
for (uint number = min; number <= max; ++number) for (uint number = min; number <= max; ++number)
addSource(QString("cpu%1").arg(number)); addSource(QString("cpu%1").arg(number));
@ -128,7 +128,7 @@ void CpuStatPrivate::timeout()
if ( (mMonitoring == CpuStat::LoadOnly) if ( (mMonitoring == CpuStat::LoadOnly)
|| (mMonitoring == CpuStat::LoadAndFrequency) ) || (mMonitoring == CpuStat::LoadAndFrequency) )
{ {
foreach (QString row, readAllFile("/proc/stat").split(QChar('\n'), QString::SkipEmptyParts)) foreach (const QString &row, readAllFile("/proc/stat").split(QChar('\n'), QString::SkipEmptyParts))
{ {
if (!row.startsWith("cpu")) if (!row.startsWith("cpu"))
continue; continue;

@ -53,7 +53,7 @@ void MemStatPrivate::timeout()
qulonglong swapTotal = 0; qulonglong swapTotal = 0;
qulonglong swapFree = 0; qulonglong swapFree = 0;
foreach (QString row, readAllFile("/proc/meminfo").split(QChar('\n'), QString::SkipEmptyParts)) foreach (const QString &row, readAllFile("/proc/meminfo").split(QChar('\n'), QString::SkipEmptyParts))
{ {
QStringList tokens = row.split(QChar(' '), QString::SkipEmptyParts); QStringList tokens = row.split(QChar(' '), QString::SkipEmptyParts);
if (tokens.size() != 3) if (tokens.size() != 3)

@ -42,7 +42,7 @@ NetStatPrivate::NetStatPrivate(NetStat *parent)
rows.erase(rows.begin(), rows.begin() + 2); rows.erase(rows.begin(), rows.begin() + 2);
foreach (QString row, rows) foreach (const QString &row, rows)
{ {
QStringList tokens = row.split(QChar(':'), QString::SkipEmptyParts); QStringList tokens = row.split(QChar(':'), QString::SkipEmptyParts);
if (tokens.size() != 2) if (tokens.size() != 2)
@ -74,7 +74,7 @@ void NetStatPrivate::timeout()
rows.erase(rows.begin(), rows.begin() + 2); rows.erase(rows.begin(), rows.begin() + 2);
foreach (QString row, rows) foreach (const QString &row, rows)
{ {
QStringList tokens = row.split(QChar(':'), QString::SkipEmptyParts); QStringList tokens = row.split(QChar(':'), QString::SkipEmptyParts);
if (tokens.size() != 2) if (tokens.size() != 2)

Loading…
Cancel
Save