about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--osversion.go2
-rw-r--r--uptime.go2
-rw-r--r--usercount.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/osversion.go b/osversion.go
index 297e9cd..27911b8 100644
--- a/osversion.go
+++ b/osversion.go
@@ -24,5 +24,5 @@ func osVersionQuery(format string) ([]byte, error) {
 `, split[0], split[2])), nil
 	}
 
-	return []byte(fmt.Sprintf("%s %s", split[0], split[2])), nil
+	return []byte(fmt.Sprintf("%s %s\n", split[0], split[2])), nil
 }
diff --git a/uptime.go b/uptime.go
index 07bcc47..ee8d907 100644
--- a/uptime.go
+++ b/uptime.go
@@ -17,7 +17,7 @@ func uptimeQuery(format string) ([]byte, error) {
 	split := strings.Split(string(out), ",")
 
 	if format == "plain" {
-		cut := fmt.Sprintf("%s,%s,%s,%s", split[0], split[1], split[3], split[4])
+		cut := fmt.Sprintf("%s,%s,%s,%s\n", split[0], split[1], split[3], split[4])
 		return []byte(cut), nil
 	}
 
diff --git a/usercount.go b/usercount.go
index a7084f1..180c573 100644
--- a/usercount.go
+++ b/usercount.go
@@ -17,7 +17,7 @@ func userCountQuery(format string) ([]byte, error) {
 	split := strings.Fields(string(ls))
 
 	if format == "plain" {
-		return []byte(fmt.Sprintf("%v users", len(split))), nil
+		return []byte(fmt.Sprintf("%v users\n", len(split))), nil
 	}
 
 	out := fmt.Sprintf(`{