cleaning up
parent
413605a3e7
commit
b2bb15bfd7
|
|
@ -12,7 +12,7 @@ On Slack? Please join us [K9slackers](https://join.slack.com/t/k9sers/shared_inv
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/story/this_is_fine.png" align="center" width="500" height="auto"/>
|
<img src="https://raw.githubusercontent.com/derailed/k9s/master/assets/story/this_is_fine_300.png" align="center" width="500" height="auto"/>
|
||||||
|
|
||||||
## Pulses Part Duh!
|
## Pulses Part Duh!
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -257,7 +257,7 @@ func ToMB(v int64) int64 {
|
||||||
return v / megaByte
|
return v / megaByte
|
||||||
}
|
}
|
||||||
|
|
||||||
// ToPercentageentage computes percentage.
|
// ToPercentage computes percentage.
|
||||||
func ToPercentage(v1, v2 int64) int {
|
func ToPercentage(v1, v2 int64) int {
|
||||||
if v2 == 0 {
|
if v2 == 0 {
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ func NewGauge(id string) *Gauge {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetResolution overrides the default number of digits to display.
|
||||||
func (g *Gauge) SetResolution(n int) {
|
func (g *Gauge) SetResolution(n int) {
|
||||||
g.resolution = n
|
g.resolution = n
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue