From 082f8d6c7e61b9ceba7a955f5167f622a3514e78 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Sat, 13 Jan 2018 16:54:48 +0100 Subject: [PATCH] Fix misspells --- config_example.toml | 2 +- database/influxdb/node_test.go | 4 ++-- docs/docs_configuration.md | 6 +++--- docs/docs_install.md | 2 +- output/meshviewer/node.go | 2 +- respond/collector.go | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config_example.toml b/config_example.toml index 58ebc07..27de896 100644 --- a/config_example.toml +++ b/config_example.toml @@ -139,7 +139,7 @@ password = "" # Tags used by Yanic would override the tags from this config # nodeid, hostname, owner, model, firmware_base, firmware_release,frequency11g and frequency11a are tags which are already used #tagname1 = "tagvalue 1" -# some usefull e.g.: +# some useful e.g.: #system = "productive" #site = "ffhb" diff --git a/database/influxdb/node_test.go b/database/influxdb/node_test.go index ffaac4c..70d310a 100644 --- a/database/influxdb/node_test.go +++ b/database/influxdb/node_test.go @@ -88,7 +88,7 @@ func TestToInflux(t *testing.T) { }, } - neigbour := &runtime.Node{ + neighbour := &runtime.Node{ Nodeinfo: &data.NodeInfo{ NodeID: "foobar", Network: data.Network{ @@ -119,7 +119,7 @@ func TestToInflux(t *testing.T) { Statistics: &data.Statistics{}, } - points := testPoints(node, neigbour, droppednode) + points := testPoints(node, neighbour, droppednode) var fields map[string]interface{} var tags map[string]string diff --git a/docs/docs_configuration.md b/docs/docs_configuration.md index d8d84fe..3af7b64 100644 --- a/docs/docs_configuration.md +++ b/docs/docs_configuration.md @@ -364,7 +364,7 @@ graph_path = "/var/www/html/meshviewer/data/graph.json" ## [[nodes.output.nodelist]] {% method %} The nodelist output is a minimal output with current state of collected data. -Should be prefered to use it on the [ffapi](https://freifunk.net/api-generator/) for the [freifunk-karte.de](https://freifunk-karte.de) +Should be preferred to use it on the [ffapi](https://freifunk.net/api-generator/) for the [freifunk-karte.de](https://freifunk-karte.de) {% sample lang="toml" %} ```toml [[nodes.output.nodelist]] @@ -510,14 +510,14 @@ password = "" ### [database.connection.influxdb.tags] {% method %} You could set manuelle tags with inserting into a influxdb. -Usefull if you want to identify the yanic instance when you use multiple own on the same influxdb (e.g. multisites). +Useful if you want to identify the yanic instance when you use multiple own on the same influxdb (e.g. multisites). Warning: Tags used by Yanic would override the tags from this config (e.g. `nodeid`, `hostname`, `owner`, `model`, `firmware_base`, `firmware_release`, `frequency11g`, `frequency11a`). {% sample lang="toml" %} ```toml tagname1 = "tagvalue 1s" -# some usefull e.g.: +# some useful e.g.: system = "productive" site = "ffhb" ``` diff --git a/docs/docs_install.md b/docs/docs_install.md index b7fc3c3..388eade 100644 --- a/docs/docs_install.md +++ b/docs/docs_install.md @@ -33,7 +33,7 @@ cp /opt/go/src/github.com/FreifunkBremen/yanic/contrib/init/linux-systemd/yanic. systemctl daemon-reload ``` -Before start, you should configurate yanic by the file `/etc/yanic.conf`: +Before start, you should configure yanic by the file `/etc/yanic.conf`: ``` systemctl start yanic diff --git a/output/meshviewer/node.go b/output/meshviewer/node.go index eb2d0e2..718dc00 100644 --- a/output/meshviewer/node.go +++ b/output/meshviewer/node.go @@ -21,7 +21,7 @@ type Flags struct { Gateway bool `json:"gateway"` } -// Statistics a meshviewer spezifisch struct, diffrent from respondd +// Statistics a meshviewer spezifisch struct, different from respondd type Statistics struct { NodeID string `json:"node_id"` Clients uint32 `json:"clients"` diff --git a/respond/collector.go b/respond/collector.go index 2e1327d..5fed200 100644 --- a/respond/collector.go +++ b/respond/collector.go @@ -183,7 +183,7 @@ func (coll *Collector) sendPacket(conn *net.UDPConn, destination net.IP) { } } -// send packets continously +// send packets continuously func (coll *Collector) sender() { ticker := time.NewTicker(coll.interval) for {