Skip to content

Commit

Permalink
Fix small spelling mistakes (#3434)
Browse files Browse the repository at this point in the history
  • Loading branch information
bengadbois authored and tsg committed Jan 23, 2017
1 parent 59fa08b commit 4f41540
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ clean-vendor:
.PHONY: check
check:
$(foreach var,$(PROJECTS),$(MAKE) -C $(var) check || exit 1;)
# Validate that all updates were commited
# Validate that all updates were committed
$(MAKE) update
git update-index --refresh
git diff-index --exit-code HEAD --
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# This box is used as a Windows development and testing environment for Beats.
#
# Usage and Features:
# - Two users exist: Administartor and Vagrant. Both have the password: vagrant
# - Two users exist: Administrator and Vagrant. Both have the password: vagrant
# - Use 'vagrant ssh' to open a Windows command prompt.
# - Use 'vagrant rdp' to open a Windows Remote Deskop session. Mac users must
# install the Microsoft Remote Desktop Client from the App Store.
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pip install -r requirements.txt

This creates the environment that contains all the python packages required to
run the `export_dashboards.py` script. Thus, for the next runs you just need
to enable the enviroment:
to enable the environment:

```
. env/bin/activate
Expand Down
2 changes: 1 addition & 1 deletion filebeat/harvester/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestInitRegexp(t *testing.T) {

// readLine reads a full line into buffer and returns it.
// In case of partial lines, readLine does return an error and an empty string
// This could potentialy be improved / replaced by https://github.com/elastic/beats/libbeat/tree/master/common/streambuf
// This could potentially be improved / replaced by https://github.com/elastic/beats/libbeat/tree/master/common/streambuf
func readLine(reader reader.Reader) (time.Time, string, int, common.MapStr, error) {
message, err := reader.Next()

Expand Down
2 changes: 1 addition & 1 deletion filebeat/tests/open-file-handlers/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ logs:
- filebeat


#addtional:
#additional:
# image: debian
# links:
# - filebeat
Expand Down
4 changes: 2 additions & 2 deletions filebeat/tests/system/test_registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def test_restart_state_reset(self):
assert len(data) == 1
assert data[0]["ttl"] > 0

# No config file which does not match the exisitng state
# No config file which does not match the existing state
self.render_config_template(
path=os.path.abspath(self.working_dir) + "/log/test2.log",
clean_inactive="10s",
Expand Down Expand Up @@ -1127,7 +1127,7 @@ def test_restart_state_reset_ttl_with_space(self):
assert len(data) == 1
assert data[0]["ttl"] == 20 * 1000 * 1000 * 1000

# new config file whith other clean_inactive
# new config file with other clean_inactive
self.render_config_template(
path=os.path.abspath(self.working_dir) + "/log/test file.log",
clean_inactive="40s",
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/monitors/active/icmp/loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func createListener(name, network string) *icmp.PacketConn {
conn, err := icmp.ListenPacket(network, "")

// XXX: need to check for conn == nil, as 'err != nil' seems always to be
// true, even if error value itself is `nil`. Checking for conn supresses
// true, even if error value itself is `nil`. Checking for conn suppresses
// missleading log message.
if conn == nil && err != nil {
logp.Info("%v ICMP not supported: %v", name, err)
Expand Down
4 changes: 2 additions & 2 deletions libbeat/logp/file_rotator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Test_Rotator(t *testing.T) {
return
}

Debug("rotator", "Direcotry: %s", dir)
Debug("rotator", "Directory: %s", dir)

rotateeverybytes := uint64(1000)
keepfiles := 3
Expand Down Expand Up @@ -118,7 +118,7 @@ func Test_Rotator_By_Bytes(t *testing.T) {
return
}

Debug("rotator", "Direcotry: %s", dir)
Debug("rotator", "Directory: %s", dir)

rotateeverybytes := uint64(100)
keepfiles := 3
Expand Down
2 changes: 1 addition & 1 deletion libbeat/scripts/generate_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def fill_field_properties(args, field, defaults, path):

dynamic_templates.extend(dynamic)
else:
raise ValueError("Unkown type found: " + field.get("type"))
raise ValueError("Unknown type found: " + field.get("type"))

return properties, dynamic_templates

Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/bucket/bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestFetchEventContents(t *testing.T) {
response, err := ioutil.ReadFile(absPath + "/sample_response.json")
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(200)
w.Header().Set("Content-Type", "appication/json;")
w.Header().Set("Content-Type", "application/json;")
w.Write([]byte(response))
}))
defer server.Close()
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestFetchEventContents(t *testing.T) {
response, err := ioutil.ReadFile(absPath + "/sample_response.json")
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(200)
w.Header().Set("Content-Type", "appication/json;")
w.Header().Set("Content-Type", "application/json;")
w.Write([]byte(response))
}))
defer server.Close()
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/node/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestFetchEventContents(t *testing.T) {
response, err := ioutil.ReadFile(absPath + "/sample_response.json")
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(200)
w.Header().Set("Content-Type", "appication/json;")
w.Header().Set("Content-Type", "application/json;")
w.Write([]byte(response))
}))
defer server.Close()
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/SUPPORT_PROTOCOL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Support a new protocol

This is a simple guide, written while implementing support for mongodb protocol in order to make life easier for following developpers.
This is a simple guide, written while implementing support for mongodb protocol in order to make life easier for following developers.

# Have a look at the code

Expand Down
2 changes: 1 addition & 1 deletion packetbeat/_meta/beat.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ packetbeat.protocols.amqp:
# Default: false
#parse_arguments: false

# Hide all methods relative to connection negociation between server and
# Hide all methods relative to connection negotiation between server and
# client.
# Default: true
#hide_connection_information: true
Expand Down
4 changes: 2 additions & 2 deletions packetbeat/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1387,13 +1387,13 @@
type: long
format: bytes
description: >
The byte count of the values being transfered.
The byte count of the values being transferred.
- name: response.bytes
type: long
format: bytes
description: >
The byte count of the values being transfered.
The byte count of the values being transferred.
- name: request.delta
type: long
Expand Down
4 changes: 2 additions & 2 deletions packetbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@ type: long
format: bytes
The byte count of the values being transfered.
The byte count of the values being transferred.
[float]
Expand All @@ -2074,7 +2074,7 @@ type: long
format: bytes
The byte count of the values being transfered.
The byte count of the values being transferred.
[float]
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/flows/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (w *worker) tick(t *time.Ticker) bool {
}
}

func (w *worker) periodicaly(tick time.Duration, fn func() error) {
func (w *worker) periodically(tick time.Duration, fn func() error) {
defer debugf("stop periodic loop")

ticker := time.NewTicker(tick)
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/flows/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func makeWorker(
nPeriod := ticksPeriod
reportPeriodically := ticksPeriod > 0
debugf("start flows worker loop")
w.periodicaly(tickDuration, func() error {
w.periodically(tickDuration, func() error {
nTimeout--
nPeriod--
debugf("worker tick, nTimeout=%v, nPeriod=%v", nTimeout, nPeriod)
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/packetbeat.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ packetbeat.protocols.amqp:
# Default: false
#parse_arguments: false

# Hide all methods relative to connection negociation between server and
# Hide all methods relative to connection negotiation between server and
# client.
# Default: true
#hide_connection_information: true
Expand Down
4 changes: 2 additions & 2 deletions packetbeat/protos/cassandra/internal/gocql/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ func (f *Framer) ReadFrame() (data map[string]interface{}, err error) {
if f.Header.Flags&flagCompress == flagCompress {
//decompress data and switch to use bytearray decoder
if f.compres == nil {
logp.Err("hit compress flag, but comprossor was not set")
panic(errors.New("hit compress flag, but comprossor was not set"))
logp.Err("hit compress flag, but compressor was not set")
panic(errors.New("hit compress flag, but compressor was not set"))
}

decoder := &ByteArrayDecoder{}
Expand Down
4 changes: 2 additions & 2 deletions packetbeat/protos/memcache/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@
type: long
format: bytes
description: >
The byte count of the values being transfered.
The byte count of the values being transferred.
- name: response.bytes
type: long
format: bytes
description: >
The byte count of the values being transfered.
The byte count of the values being transferred.
- name: request.delta
type: long
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/sniffer/sniffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func deviceNameFromIndex(index int, devices []string) (string, error) {
// ListDevicesNames returns the list of adapters available for sniffing on
// this computer. If the withDescription parameter is set to true, a human
// readable version of the adapter name is added. If the withIP parameter
// is set to true, IP address of the adatper is added.
// is set to true, IP address of the adapter is added.
func ListDeviceNames(withDescription bool, withIP bool) ([]string, error) {
devices, err := pcap.FindAllDevs()
if err != nil {
Expand Down
10 changes: 5 additions & 5 deletions packetbeat/tests/system/files/ThriftTest.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ service ThriftTest
double testDouble(1: double thing),

/**
* Prints 'testStruct("{%s}")' where thing has been formatted into a string of comma seperated values
* Prints 'testStruct("{%s}")' where thing has been formatted into a string of comma separated values
* @param Xtruct thing - the Xtruct to print
* @return Xtruct - returns the Xtruct 'thing'
*/
Expand All @@ -184,31 +184,31 @@ service ThriftTest

/**
* Prints 'testMap("{%s")' where thing has been formatted into a string of 'key => value' pairs
* seperated by commas and new lines
* separated by commas and new lines
* @param map<i32,i32> thing - the map<i32,i32> to print
* @return map<i32,i32> - returns the map<i32,i32> 'thing'
*/
map<i32,i32> testMap(1: map<i32,i32> thing),

/**
* Prints 'testStringMap("{%s}")' where thing has been formatted into a string of 'key => value' pairs
* seperated by commas and new lines
* separated by commas and new lines
* @param map<string,string> thing - the map<string,string> to print
* @return map<string,string> - returns the map<string,string> 'thing'
*/
map<string,string> testStringMap(1: map<string,string> thing),

/**
* Prints 'testSet("{%s}")' where thing has been formatted into a string of values
* seperated by commas and new lines
* separated by commas and new lines
* @param set<i32> thing - the set<i32> to print
* @return set<i32> - returns the set<i32> 'thing'
*/
set<i32> testSet(1: set<i32> thing),

/**
* Prints 'testList("{%s}")' where thing has been formatted into a string of values
* seperated by commas and new lines
* separated by commas and new lines
* @param list<i32> thing - the list<i32> to print
* @return list<i32> - returns the list<i32> 'thing'
*/
Expand Down

0 comments on commit 4f41540

Please sign in to comment.