rename convertToStrings -> strTime
This commit is contained in:
parent
a8f6c78461
commit
7ce6def361
@ -58,6 +58,6 @@ func (s *progressBar) updateProgress(conn mpd.Client){
|
|||||||
du , err := strconv.ParseFloat(_status["duration"], 8)
|
du , err := strconv.ParseFloat(_status["duration"], 8)
|
||||||
percentage := el / du * 100
|
percentage := el / du * 100
|
||||||
if err == nil && err1 == nil{
|
if err == nil && err1 == nil{
|
||||||
s.t.GetCell(1,0).Text = getText(float64(_width), percentage, convertToStrings(el) + "/" + convertToStrings(du) + "(" + strconv.FormatFloat(percentage, 'f', 2, 32) + "%" + ")")
|
s.t.GetCell(1,0).Text = getText(float64(_width), percentage, strTime(el) + "/" + strTime(du) + "(" + strconv.FormatFloat(percentage, 'f', 2, 32) + "%" + ")")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user