Fix spelling mistakes

This commit is contained in:
Carsten Larsen 2017-07-13 22:22:01 +02:00
parent 0376c0a7cd
commit ffbbfc38ba
14 changed files with 33 additions and 33 deletions

View File

@ -33,7 +33,7 @@ public static class CommandFactory
new CommandDescription<ConfigFileCommand>("config", "Shows name and path of current configuration."),
new CommandDescription<HelpCommand>("help", "Shows valid commands."),
new CommandDescription<JobsCommand>("jobs", "Shows a list of jobs in scheduler."),
new CommandDescription<NextJobCommand>("next", "Shows when next scheduled job will be actived."),
new CommandDescription<NextJobCommand>("next", "Shows when next scheduled job will be active."),
new CommandDescription<PidCommand>("pid", "Shows process id of NTPA daemon."),
new CommandDescription<PingCommand>("ping", "Responds if daemon is running."),
new CommandDescription<ProgCommand>("prog", "Shows active configuration."),

View File

@ -594,7 +594,7 @@ private void ParseIntOrString(ISyntaxNode parent)
case TokenType.IntegerValue:
parent.Add(new IntegerSettingNode(keyword, ((IntegerToken) token).Value, tokenizer.LineNumber));
break;
case TokenType.Litteral:
case TokenType.Literal:
case TokenType.QuotedIdent:
parent.Add(new StringSettingNode(keyword, token.Text, tokenizer.LineNumber));
break;

View File

@ -188,7 +188,7 @@ private Token GetNextToken()
return new SymbolToken(Symbol.ClosingBrace);
}
var token = ParseQuotedIdent() ?? ParseLitteral();
var token = ParseQuotedIdent() ?? ParseLiteral();
return token;
}
@ -242,7 +242,7 @@ private static Token ParseDigitValue(string text)
return double.TryParse(text, out dvalue) ? new NumericToken(dvalue) : null;
}
private Token ParseLitteral()
private Token ParseLiteral()
{
var text = new StringBuilder();
while (!char.IsWhiteSpace(reader.Peek()) && reader.Peek() != '\r' && reader.Peek() != '\n' &&
@ -260,7 +260,7 @@ private Token ParseLitteral()
return keyword != null
? new KeywordToken(keyword, tokenText)
: (Token) new LitteralToken(tokenText);
: (Token) new LiteralToken(tokenText);
}
private Token ParseQuotedIdent()

View File

@ -21,16 +21,16 @@
namespace Ntp.Analyzer.Config.Table
{
public sealed class LitteralToken : Token
public sealed class LiteralToken : Token
{
public LitteralToken(string text)
public LiteralToken(string text)
{
this.text = text;
}
private readonly string text;
public override TokenType TokenType => TokenType.Litteral;
public override TokenType TokenType => TokenType.Literal;
public override Symbol Symbol => Symbol.Undefined;
@ -38,7 +38,7 @@ public LitteralToken(string text)
public override bool Equals(object obj)
{
var other = obj as LitteralToken;
var other = obj as LiteralToken;
if (other == null)
return false;

View File

@ -34,7 +34,7 @@ public abstract class Token
public static Token Undefined = new SymbolToken(Symbol.Undefined);
public bool IsText => TokenType == TokenType.QuotedIdent ||
TokenType == TokenType.Litteral ||
TokenType == TokenType.Literal ||
TokenType == TokenType.Keyword;
public abstract TokenType TokenType { get; }

View File

@ -28,6 +28,6 @@ public enum TokenType
NumericValue,
IntegerValue,
QuotedIdent,
Litteral
Literal
}
}

View File

@ -32,10 +32,10 @@ namespace Ntp.Analyzer.Graph
/// </summary>
public abstract class DispersionGraph : GraphBase
{
protected DispersionGraph(IDispersionGraphConfiguration configuratation)
: base(configuratation)
protected DispersionGraph(IDispersionGraphConfiguration configuration)
: base(configuration)
{
config = configuratation;
config = configuration;
Time = new List<DateTime>();
Offset = new List<double>();
Jitter = new List<double>();

View File

@ -33,10 +33,10 @@ namespace Ntp.Analyzer.Graph
{
public sealed class HostGraph : DispersionGraph
{
public HostGraph(IHostGraphConfiguration configuratation, Host host)
: base(configuratation)
public HostGraph(IHostGraphConfiguration configuration, Host host)
: base(configuration)
{
config = configuratation;
config = configuration;
this.host = host;
frequency = new List<double>();
stability = new List<double>();

View File

@ -32,10 +32,10 @@ namespace Ntp.Analyzer.Graph
{
public sealed class PeerGraph : DispersionGraph
{
public PeerGraph(IPeerGraphConfiguration configuratation, Host host, Peer peer)
: base(configuratation)
public PeerGraph(IPeerGraphConfiguration configuration, Host host, Peer peer)
: base(configuration)
{
config = configuratation;
config = configuration;
this.host = host;
this.peer = peer;

View File

@ -33,10 +33,10 @@ namespace Ntp.Analyzer.Graph
{
public sealed class TrafficGraph : GraphBase
{
public TrafficGraph(ITrafficGraphConfiguration configuratation, Host host)
: base(configuratation)
public TrafficGraph(ITrafficGraphConfiguration configuration, Host host)
: base(configuration)
{
config = configuratation;
config = configuration;
this.host = host;
}
@ -143,7 +143,7 @@ protected override void LoadData()
var startTime = DateTime.MinValue;
var firstTime = DateTime.MinValue;
long firstRecieved = 0;
long firstReceived = 0;
long firstIgnored = 0;
long firstDropped = 0;
long firstSent = 0;
@ -182,7 +182,7 @@ protected override void LoadData()
dropped.Add((reading.DroppedPackets - lastDropped)*config.Dropped/minutes/disFactor ?? 0.0);
sent.Add((reading.PacketsSent - lastSent)*config.Sent/minutes/disFactor ?? 0.0);
notSent.Add((reading.PacketsNotSent - lastNotSent)*config.NotSent/minutes/disFactor ?? 0.0);
receivedAvg.Add((reading.ReceivedPackets - firstRecieved)*config.ReceivedAvg/totalMinutes/
receivedAvg.Add((reading.ReceivedPackets - firstReceived)*config.ReceivedAvg/totalMinutes/
disFactor ?? 0.0);
// TODO
@ -227,7 +227,7 @@ protected override void LoadData()
startTime = readingTime.Subtract(span);
firstTime = readingTime;
firstRecieved = reading.ReceivedPackets;
firstReceived = reading.ReceivedPackets;
firstIgnored = reading.IgnoredPackets;
firstDropped = reading.DroppedPackets;
firstSent = reading.PacketsSent;

View File

@ -129,7 +129,7 @@ FILES = \
Page/BootstrapPeerPageBuilder.cs \
Page/BootstrapAboutPageBuilder.cs \
Render/BootstrapAboutPageRender.cs \
Render/Graph/BootstrapGrapPageRender.cs \
Render/Graph/BootstrapGraphPageRender.cs \
Render/BootstrapPageRender.cs \
Render/HtmlObjectRender.cs \
Render/Host/DefaultHostTableRender.cs \
@ -247,7 +247,7 @@ FILES = \
Config/Table/Keyword.cs \
Config/Table/IntegerToken.cs \
Config/Table/KeywordToken.cs \
Config/Table/LitteralToken.cs \
Config/Table/LiteralToken.cs \
Config/Table/NumericToken.cs \
Config/Table/QuotedIdentToken.cs \
Config/Table/SymbolToken.cs \

View File

@ -68,7 +68,7 @@
<Compile Include="Page\BootstrapPeerPageBuilder.cs" />
<Compile Include="Page\BootstrapAboutPageBuilder.cs" />
<Compile Include="Render\BootstrapAboutPageRender.cs" />
<Compile Include="Render\Graph\BootstrapGrapPageRender.cs" />
<Compile Include="Render\Graph\BootstrapGraphPageRender.cs" />
<Compile Include="Render\BootstrapPageRender.cs" />
<Compile Include="Render\HtmlObjectRender.cs" />
<Compile Include="Render\Host\DefaultHostTableRender.cs" />
@ -186,7 +186,7 @@
<Compile Include="Config\Table\Keyword.cs" />
<Compile Include="Config\Table\IntegerToken.cs" />
<Compile Include="Config\Table\KeywordToken.cs" />
<Compile Include="Config\Table\LitteralToken.cs" />
<Compile Include="Config\Table\LiteralToken.cs" />
<Compile Include="Config\Table\NumericToken.cs" />
<Compile Include="Config\Table\QuotedIdentToken.cs" />
<Compile Include="Config\Table\SymbolToken.cs" />

View File

@ -57,7 +57,7 @@ public sealed class GraphPageBuilder : PageBuilderBase
public override Stream Generate()
{
var page = new BootstrapGrapPageRender(
var page = new BootstrapGraphPageRender(
config.WebPath,
namedObject,
config.Title,

View File

@ -28,9 +28,9 @@
namespace Ntp.Analyzer.Render.Graph
{
public sealed class BootstrapGrapPageRender : BootstrapPageRender
public sealed class BootstrapGraphPageRender : BootstrapPageRender
{
public BootstrapGrapPageRender(
public BootstrapGraphPageRender(
Uri webPath,
NamedObject namedObject,
string title,