mirror of
https://codeberg.org/frosty/modbot.git
synced 2024-09-19 03:36:35 -04:00
fix space indent with tabs
This commit is contained in:
parent
5aa15fa5f6
commit
20fcd2c6e3
44
README.md
44
README.md
|
@ -25,31 +25,31 @@ Usage of modbot:
|
|||
|
||||
```go
|
||||
var (
|
||||
delim = []byte("] [")
|
||||
prefix = []byte("[")
|
||||
suffix = []byte("]")
|
||||
delim = []byte("] [")
|
||||
prefix = []byte("[")
|
||||
suffix = []byte("]")
|
||||
)
|
||||
|
||||
var modules = []Module{
|
||||
{
|
||||
Func: readers.ReadCpuUsage(),
|
||||
Interval: 5 * time.Second,
|
||||
Template: `CPU {{printf "%.0f" .UsagePercent}}%`,
|
||||
},
|
||||
{
|
||||
Func: readers.ReadBattery("BAT1"),
|
||||
Interval: 60 * time.Second,
|
||||
Template: "BAT {{.Capacity}}%",
|
||||
},
|
||||
{
|
||||
Func: readers.ReadDate("15:04:05"),
|
||||
Interval: 1 * time.Second,
|
||||
},
|
||||
{
|
||||
Func: readers.ReadLoad(),
|
||||
Interval: 5 * time.Second,
|
||||
Template: "{{.OneMinute}}",
|
||||
},
|
||||
{
|
||||
Func: readers.ReadCpuUsage(),
|
||||
Interval: 5 * time.Second,
|
||||
Template: `CPU {{printf "%.0f" .UsagePercent}}%`,
|
||||
},
|
||||
{
|
||||
Func: readers.ReadBattery("BAT1"),
|
||||
Interval: 60 * time.Second,
|
||||
Template: "BAT {{.Capacity}}%",
|
||||
},
|
||||
{
|
||||
Func: readers.ReadDate("15:04:05"),
|
||||
Interval: 1 * time.Second,
|
||||
},
|
||||
{
|
||||
Func: readers.ReadLoad(),
|
||||
Interval: 5 * time.Second,
|
||||
Template: "{{.OneMinute}}",
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue