pretty ETA, status time

This commit is contained in:
pyed 2016-07-10 16:55:48 +03:00
parent 06907617d6
commit 29b2daaa17

View File

@ -1080,13 +1080,13 @@ func stats(ud tgbotapi.Update) {
_Current Stats_ _Current Stats_
Downloaded: *%s* Downloaded: *%s*
Uploaded: *%s* Uploaded: *%s*
Running time: *%d seconds* Running time: *%s*
_Accumulative Stats_ _Accumulative Stats_
Sessions: *%d* Sessions: *%d*
Downloaded: *%s* Downloaded: *%s*
Uploaded: *%s* Uploaded: *%s*
Total Running time: *%d seconds* Total Running time: *%s*
`, `,
stats.TorrentCount, stats.TorrentCount,
@ -1094,11 +1094,11 @@ func stats(ud tgbotapi.Update) {
stats.PausedTorrentCount, stats.PausedTorrentCount,
humanize.Bytes(stats.CurrentStats.DownloadedBytes), humanize.Bytes(stats.CurrentStats.DownloadedBytes),
humanize.Bytes(stats.CurrentStats.UploadedBytes), humanize.Bytes(stats.CurrentStats.UploadedBytes),
stats.CurrentStats.SecondsActive, stats.CurrentActiveTime(),
stats.CumulativeStats.SessionCount, stats.CumulativeStats.SessionCount,
humanize.Bytes(stats.CumulativeStats.DownloadedBytes), humanize.Bytes(stats.CumulativeStats.DownloadedBytes),
humanize.Bytes(stats.CumulativeStats.UploadedBytes), humanize.Bytes(stats.CumulativeStats.UploadedBytes),
stats.CumulativeStats.SecondsActive, stats.CumulativeActiveTime(),
) )
send(msg, ud.Message.Chat.ID, true) send(msg, ud.Message.Chat.ID, true)