mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
Merge pull request #98 from mjarkk/fix-76
Add a limit to the c.StatsHistory
This commit is contained in:
commit
a5ec531b2b
1 changed files with 6 additions and 0 deletions
|
|
@ -289,6 +289,11 @@ type CustomCommand struct {
|
|||
// the boolean zero value and this will be ignored when parsing the user's
|
||||
// config
|
||||
func GetDefaultConfig() UserConfig {
|
||||
duration, err := time.ParseDuration("3m")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return UserConfig{
|
||||
Gui: GuiConfig{
|
||||
ScrollHeight: 2,
|
||||
|
|
@ -336,6 +341,7 @@ func GetDefaultConfig() UserConfig {
|
|||
Method: "never",
|
||||
},
|
||||
Stats: StatsConfig{
|
||||
MaxDuration: duration,
|
||||
Graphs: []GraphConfig{
|
||||
{
|
||||
Caption: "CPU (%)",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue