File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 125
125
</ div >
126
126
{{- end }}
127
127
< div class ="progress-bar progress-bar-combined ">
128
- {{- if .Info.Mountpoints }}
129
- < div class =" progress-value{{ if ge ((index .Info.Mountpoints 0).UsedPercent) 85 }} progress-value-notice{{ end }} " style =" --percent: {{ (index .Info.Mountpoints 0).UsedPercent }} " > </ div >
130
- {{- if ge (len .Info.Mountpoints) 2 }}
131
- < div class ="progress-value{{ if ge ((index .Info.Mountpoints 1). UsedPercent) 85 }} progress-value-notice{{ end }} " style ="--percent: {{ (index .Info.Mountpoints 1) .UsedPercent }} "> </ div >
128
+ {{$limit := .MountBarLimit }}
129
+ {{- range $i,$mount := .Info.Mountpoints }}
130
+ {{if lt $i $limit }}
131
+ < div class ="progress-value{{ if ge . UsedPercent 85 }} progress-value-notice{{ end }} " style ="--percent: {{ .UsedPercent }} "> </ div >
132
132
{{- end }}
133
133
{{- end }}
134
134
</ div >
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ type serverStatsRequest struct {
91
91
StatusText string `yaml:"-"`
92
92
Name string `yaml:"name"`
93
93
HideSwap bool `yaml:"hide-swap"`
94
+ MountBarLimit int `yaml:"mount-bar-limit"`
94
95
Type string `yaml:"type"`
95
96
URL string `yaml:"url"`
96
97
Token string `yaml:"token"`
You can’t perform that action at this time.
0 commit comments