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