Use text-reset if p=0.5
This commit is contained in:
parent
48bd8bc2b0
commit
2bdf74e57e
|
@ -103,12 +103,15 @@ func humanizeRound(f float64) string {
|
|||
}
|
||||
|
||||
func colorize(f float64) string {
|
||||
if f > 0.5 {
|
||||
eps := 1e-5
|
||||
|
||||
if f-0.5 > eps {
|
||||
return "text-success"
|
||||
} else {
|
||||
} else if 0.5-f > eps {
|
||||
return "text-error"
|
||||
}
|
||||
|
||||
return "text-reset"
|
||||
}
|
||||
|
||||
func tabStyle(path string, tab string) string {
|
||||
|
|
Loading…
Reference in New Issue