Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7ec40db4 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos

parent 956c9f29
......@@ -42,7 +42,7 @@ class SensorRequest;
starts a ksysguardd process or connects through a tcp connection to
a running ksysguardd and handles the asynchronous communication. It
keeps a list of pending requests that have not been answered yet by
ksysguardd. The current implementation only allowes one pending
ksysguardd. The current implementation only allows one pending
requests. Incoming requests are queued in an input FIFO.
*/
class Q_DECL_EXPORT SensorAgent : public QObject
......@@ -110,7 +110,7 @@ class Q_DECL_EXPORT SensorAgent : public QObject
};
/**
This auxilliary class is used to store requests during their processing.
This auxiliary class is used to store requests during their processing.
*/
class SensorRequest
{
......
......@@ -42,7 +42,7 @@ class SensorManager;
The SensorShellAgent starts a ksysguardd process and handles the
asynchronous communication. It keeps a list of pending requests
that have not been answered yet by ksysguard. The current
implementation only allowes one pending requests. Incoming requests
implementation only allows one pending requests. Incoming requests
are queued in an input FIFO.
*/
class SensorShellAgent : public SensorAgent
......
......@@ -36,7 +36,7 @@ namespace KSGRD {
/**
The SensorSocketAgent connects to a ksysguardd via a TCP
connection. It keeps a list of pending requests that have not been
answered yet by ksysguard. The current implementation only allowes
answered yet by ksysguard. The current implementation only allows
one pending requests. Incoming requests are queued in an input
FIFO.
*/
......
......@@ -11,7 +11,7 @@
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
** structure which describes the raw file contents
......@@ -139,14 +139,14 @@ struct PStat {
struct net {
count_t tcpsnd; /* number of TCP-packets sent */
count_t tcpssz; /* cumulative size packets sent */
count_t tcprcv; /* number of TCP-packets recved */
count_t tcprcv; /* number of TCP-packets received */
count_t tcprsz; /* cumulative size packets rcvd */
count_t udpsnd; /* number of UDP-packets sent */
count_t udpssz; /* cumulative size packets sent */
count_t udprcv; /* number of UDP-packets recved */
count_t udprcv; /* number of UDP-packets received */
count_t udprsz; /* cumulative size packets sent */
count_t rawsnd; /* number of raw packets sent */
count_t rawrcv; /* number of raw packets recved */
count_t rawrcv; /* number of raw packets received */
count_t cfuture[4]; /* reserved for future use */
} net;
};
......
......@@ -132,7 +132,7 @@ bool ProcessesLocal::Private::readProcCmdline(long pid, Process *process)
return false;
QString command = QString(buf);
//cmdline seperates parameters with the NULL character
//cmdline separates parameters with the NULL character
command = command.replace('\0', ' ');
process->setCommand(command.trimmed());
......
......@@ -135,7 +135,7 @@ bool ProcessesLocal::Private::readProcCmdline(long pid, Process *process)
return false;
QString command = QString::fromUtf8(buf);
//cmdline seperates parameters with the NULL character
//cmdline separates parameters with the NULL character
command = command.replace(QLatin1Char('\0'), QLatin1Char(' '));
process->setCommand(command.trimmed());
......
......@@ -167,7 +167,7 @@ bool ProcessesLocal::Private::readProcCmdline(long pid, Process *process)
return false;
QString command = QString(buf);
//cmdline seperates parameters with the NULL character
//cmdline separates parameters with the NULL character
command.replace('\0', ' ');
process->setCommand(command.trimmed());
......
......@@ -36,7 +36,7 @@ KTextEditVT::KTextEditVT(QWidget* parent)
escape_CSI = false;
escape_OSC = false;
escape_number1 = -1;
escape_number_seperator = false;
escape_number_separator = false;
escape_number2 = -1;
escape_code = 0;
setFont( QFontDatabase::systemFont(QFontDatabase::FixedFont) );
......@@ -47,7 +47,7 @@ void KTextEditVT::insertVTChar(const QChar & c) {
if(escape_sequence) {
if(escape_CSI || escape_OSC) {
if(c.isDigit()) {
if(!escape_number_seperator) {
if(!escape_number_separator) {
if(escape_number1 == -1)
escape_number1 = c.digitValue();
else
......@@ -60,7 +60,7 @@ void KTextEditVT::insertVTChar(const QChar & c) {
}
} else if(c == QLatin1Char(';')) {
escape_number_seperator = true;
escape_number_separator = true;
} else if(escape_OSC && c==7) { //Throw away any letters that are not OSC
escape_code = c;
} else if(escape_CSI)
......@@ -116,7 +116,7 @@ void KTextEditVT::insertVTChar(const QChar & c) {
escape_CSI = false;
escape_OSC = false;
escape_sequence = false;
escape_number_seperator = false;
escape_number_separator = false;
}
} else if(c == 0x0d) {
insertPlainText(QStringLiteral("\n"));
......
......@@ -95,7 +95,7 @@ private:
bool escape_OSC;
int escape_number1;
int escape_number2;
bool escape_number_seperator;
bool escape_number_separator;
QChar escape_code;
};
......
......@@ -1305,7 +1305,7 @@ QVariant ProcessModel::data(const QModelIndex &index, int role) const
if(process->vmRSS() - process->vmURSS() <= 0 || process->vmURSS() == -1) return QVariant(QVariant::String);
return formatMemoryInfo(process->vmRSS() - process->vmURSS(), d->mUnits);
case HeadingStartTime: {
// NOTE: the next 6 lines are the same as in the next occurence of 'case HeadingStartTime:' => keep in sync or remove duplicate code
// NOTE: the next 6 lines are the same as in the next occurrence of 'case HeadingStartTime:' => keep in sync or remove duplicate code
const auto clockTicksSinceSystemBoot = process->startTime();
const auto clockTicksPerSecond = sysconf(_SC_CLK_TCK); // see man proc or http://superuser.com/questions/101183/what-is-a-cpu-tick
const auto secondsSinceSystemBoot = (double)clockTicksSinceSystemBoot / clockTicksPerSecond;
......@@ -1460,7 +1460,7 @@ QVariant ProcessModel::data(const QModelIndex &index, int role) const
return tooltip;
}
case HeadingStartTime: {
// NOTE: the next 6 lines are the same as in the previous occurence of 'case HeadingStartTime:' => keep in sync or remove duplicate code
// NOTE: the next 6 lines are the same as in the previous occurrence of 'case HeadingStartTime:' => keep in sync or remove duplicate code
const auto clockTicksSinceSystemBoot = process->startTime();
const auto clockTicksPerSecond = sysconf(_SC_CLK_TCK);
const auto secondsSinceSystemBoot = (double)clockTicksSinceSystemBoot / clockTicksPerSecond;
......@@ -1510,7 +1510,7 @@ QVariant ProcessModel::data(const QModelIndex &index, int role) const
"<para><emphasis strong='true'>Scheduler priority:</emphasis> %1</para>", process->niceLevel());
break;
case KSysGuard::Process::SchedulerIdle:
break; //has neither dynamic (niceness) or static (scheduler priority) priotiy
break; //has neither dynamic (niceness) or static (scheduler priority) priority
}
if(process->scheduler() != KSysGuard::Process::Other)
tooltip += xi18nc("@info:tooltip", "<para><emphasis strong='true'>Scheduler:</emphasis> %1</para>", process->schedulerAsString());
......
......@@ -158,7 +158,7 @@ void Scripting::runScript(const QString &path, const QString &name) {
QString webChannelJs = QString::fromUtf8(webChannelJsFile.readAll());
/* Warning: Awful hack ahead!
* WebChannel does not allow synchonous calls so we need to make
* WebChannel does not allow synchronous calls so we need to make
* asynchronous calls synchronous.
* The conversion is achieved by caching the result of all readFile
* and fileExists calls and restarting the script on every result until
......
......@@ -56,7 +56,7 @@
#define VERTICAL_LINE_OFFSET 1
//Never store less 1000 samples if not visible. This is kinda arbituary
//Never store less 1000 samples if not visible. This is kinda arbitrary
#define NUM_SAMPLES_WHEN_INVISIBLE ((uint)1000)
#ifdef GRAPHICS_SIGNAL_PLOTTER
......
......@@ -25,7 +25,7 @@
// SVG support causes it to crash at the moment :(
//#define SVG_SUPPORT
// Use a seperate child widget to draw the graph in
// Use a separate child widget to draw the graph in
#ifndef GRAPHICS_SIGNAL_PLOTTER
#define USE_SEPERATE_WIDGET
......
......@@ -54,7 +54,7 @@ void TestKsysguardd::testSetup()
QCOMPARE(command, QString("../../ksysguardd/ksysguardd"));
QCOMPARE(port, -1);
success = manager.hostInfo("nonexistant host", shell, command, port );
success = manager.hostInfo("nonexistent host", shell, command, port );
QCOMPARE(success, false);
}
......
......@@ -500,7 +500,7 @@ void TestSignalPlotter::testAddingData()
s->setGeometry(0,0,500,500);
//Test adding sample without any beams. It should just ignore this
s->addSample(QList<qreal>() << 1.0 << 2.0);
//Test setting the beam color of a non-existant beam. It should just ignore this too.
//Test setting the beam color of a non-existent beam. It should just ignore this too.
// s->setBeamColor(0, Qt::blue);
//Add an empty sample. This should just be ignored?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment