Remove uploaded/downloaded ratio

This commit is contained in:
Jeffrey Serio 2023-03-27 13:40:05 -05:00
parent 7f2d82bf18
commit 84fa325aac

View File

@ -102,7 +102,6 @@ func main() {
currentStats := []SessionStat{
{Label: "Uploaded bytes", Value: fmt.Sprintf("%s", byteCountIEC(stats.CurrentStats.UploadedBytes))},
{Label: "Downloaded bytes", Value: fmt.Sprintf("%s", byteCountIEC(stats.CurrentStats.DownloadedBytes))},
{Label: "Uploaded/Downloaded ratio", Value: fmt.Sprintf("%d", stats.CurrentStats.UploadedBytes/stats.CurrentStats.DownloadedBytes)},
{Label: "Files added", Value: fmt.Sprintf("%d", stats.CurrentStats.FilesAdded)},
{Label: "Session count", Value: fmt.Sprintf("%d", stats.CurrentStats.SessionCount)},
{Label: "Time active", Value: convertTime(stats.CurrentStats.SecondsActive)},
@ -111,7 +110,6 @@ func main() {
cumulativeStats := []SessionStat{
{Label: "Uploaded bytes", Value: fmt.Sprintf("%s", byteCountIEC(stats.CumulativeStats.UploadedBytes))},
{Label: "Downloaded bytes", Value: fmt.Sprintf("%s", byteCountIEC(stats.CumulativeStats.DownloadedBytes))},
{Label: "Uploaded/Downloaded ratio", Value: fmt.Sprintf("%d", stats.CumulativeStats.UploadedBytes/stats.CumulativeStats.DownloadedBytes)},
{Label: "Files added", Value: fmt.Sprintf("%d", stats.CumulativeStats.FilesAdded)},
{Label: "Session count", Value: fmt.Sprintf("%d", stats.CumulativeStats.SessionCount)},
{Label: "Time active", Value: convertTime(stats.CumulativeStats.SecondsActive)},