diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-05-09 14:36:35 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-05-09 14:36:35 -0400 |
commit | 1e93f53cbea237fa9fdcced97971198cd897dc9b (patch) | |
tree | 1a4ac5aea61454658c48dc3c815894f0831f7116 | |
parent | 840172b5d5a695f15ed9c3e95b1525f641f81c4d (diff) | |
download | api-1e93f53cbea237fa9fdcced97971198cd897dc9b.tar.gz |
note to finish uptime query
-rw-r--r-- | uptime.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/uptime.go b/uptime.go index 3c874ea..2dd45f3 100644 --- a/uptime.go +++ b/uptime.go @@ -7,6 +7,7 @@ import ( ) // executes uptime and responds with a []byte{} +// TODO: account for uptimes <1d and >1d func uptimeQuery(format string) ([]byte, error) { out, err := exec.Command("/usr/bin/uptime").Output() if err != nil { |