Redundant Mem prefix
authorSergey Matveev <stargrave@stargrave.org>
Wed, 25 Aug 2021 07:27:47 +0000 (10:27 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 25 Aug 2021 07:27:47 +0000 (10:27 +0300)
main.go

diff --git a/main.go b/main.go
index 8c85756047dda1238f1779fc4e4b6f1fb54f5963..0ba2810c5276cc9f931f1a34904dbc1ab9e541a3 100644 (file)
--- a/main.go
+++ b/main.go
@@ -77,7 +77,7 @@ func top() {
                        ARC = cols[1]
                case "Swap:":
                        if cols[4] == "Used," {
-                               Swap = cols[3] + " "
+                               Swap = cols[3] + " Swap "
                        } else {
                                Swap = ""
                        }
@@ -148,7 +148,7 @@ func main() {
        for {
                now = time.Now()
                status = fmt.Sprintf(
-                       "[IO %s]  [Net %s]  [CPU %s]  [%sMem %s ARC %s]  [%s] %s",
+                       "[IO %s]  [Net %s]  [CPU %s]  [%s%s %s ARC]  [%s] %s",
                        IOs, Net, CPU, Swap, Mem, ARC, Flags,
                        now.Format("2006-01-02 15:04:05"),
                )