about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-05-09 14:36:35 -0400
committerBen Morrison <ben@gbmor.dev>2020-05-09 14:36:35 -0400
commit1e93f53cbea237fa9fdcced97971198cd897dc9b (patch)
tree1a4ac5aea61454658c48dc3c815894f0831f7116
parent840172b5d5a695f15ed9c3e95b1525f641f81c4d (diff)
downloadapi-1e93f53cbea237fa9fdcced97971198cd897dc9b.tar.gz
note to finish uptime query
-rw-r--r--uptime.go1
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 {