1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add small_config.yml for testing

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer 2019-12-13 22:33:23 -08:00
parent ed1e6b2508
commit 1686c9a6a9
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,17 @@
wtf:
grid:
columns: [20, 20]
rows: [3, 3]
refreshInterval: 1
mods:
uptime:
type: cmdrunner
args: [""]
cmd: "uptime"
enabled: true
position:
top: 0
left: 0
height: 1
width: 1
refreshInterval: 30

12
utils/sums.go Normal file
View File

@ -0,0 +1,12 @@
package utils
// SumInts takes a slice of ints and returns the sum of them
func SumInts(vals []int) int {
sum := 0
for _, a := range vals {
sum += a
}
return sum
}