Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/pkg/procfs/procfs.go')
-rw-r--r--src/go/pkg/procfs/procfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/pkg/procfs/procfs.go b/src/go/pkg/procfs/procfs.go
index 649a014d0ce..1cdb32a5c80 100644
--- a/src/go/pkg/procfs/procfs.go
+++ b/src/go/pkg/procfs/procfs.go
@@ -38,7 +38,7 @@ const (
)
// GetMemory reads /proc/meminfo file and returns and returns the value in bytes for the
-// specific memory type. Returns an error if the value was not found, or if theres is an issue
+// specific memory type. Returns an error if the value was not found, or if there is an issue
// with reading the file or parsing the value.
func GetMemory(memType string) (mem uint64, err error) {
meminfo, err := ReadAll("/proc/meminfo")
@@ -89,7 +89,7 @@ func ReadAll(filename string) (data []byte, err error) {
// ByteFromProcFileData returns the value in bytes of the provided value name from the provided
// process file data. Returns true if the value is found, and false if it is not or if there is an
-// error. Returns an error if the theres is an issue with parsing values.
+// error. Returns an error if the there is an issue with parsing values.
func ByteFromProcFileData(data []byte, valueName string) (uint64, bool, error) {
for _, line := range strings.Split(string(data), "\n") {
i := strings.Index(line, ":")