Fixed current time > 1hr

This commit is contained in:
Kwoth 2017-01-13 16:31:33 +01:00
parent a53b745b6a
commit f98c7d109b

View File

@ -53,7 +53,17 @@ namespace NadekoBot.Modules.Music.Classes
public string PrettyFullName => $"{PrettyName}\n\t\t`{PrettyTotalTime} | {PrettyProvider} | {QueuerName}`";
public string PrettyCurrentTime => CurrentTime.ToString(@"mm\:ss");
public string PrettyCurrentTime {
get {
var time = CurrentTime.ToString(@"mm\:ss");
var hrs = (int)CurrentTime.TotalHours;
if (hrs > 0)
return hrs + ":" + time;
else
return time;
}
}
private string PrettyTotalTime {
get {