Make number of hours human-readable

This commit is contained in:
JustArchi
2016-03-24 08:14:26 +01:00
parent 5666ebf891
commit 3311f2a703

View File

@@ -398,7 +398,8 @@ namespace ArchiSteamFarm {
CurrentGamesFarming.TrimExcess();
float hours;
if (GamesToFarm.TryRemove(appID, out hours)) {
Logging.LogGenericInfo("Done farming: " + appID + " after " + hours + " hours of playtime!", Bot.BotName);
TimeSpan timeSpan = TimeSpan.FromHours(hours);
Logging.LogGenericInfo("Done farming: " + appID + " after " + timeSpan.ToString(@"hh\:mm") + " hours of playtime!", Bot.BotName);
}
return true;
} else {