From 29b2daaa17a0b24a08b896ea77518d5f776a3ef8 Mon Sep 17 00:00:00 2001 From: pyed Date: Sun, 10 Jul 2016 16:55:48 +0300 Subject: [PATCH] pretty ETA, status time --- transmission-telegram.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transmission-telegram.go b/transmission-telegram.go index 3009d7b..97d1ac6 100644 --- a/transmission-telegram.go +++ b/transmission-telegram.go @@ -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)