stig icon indicating copy to clipboard operation
stig copied to clipboard

Feature request: global statistics

Open rr- opened this issue 8 years ago • 8 comments

Many clients offer global statistics and it would be nice if stig could support these as well.

I'm mostly interested in these:

  • All time upload
  • All time download
  • Global ratio

Here's what qBittorrent offers:

If transmission doesn't track all time stats, one could aggregate just the current stats basing on the active torrents and perhaps put that information under stig ls.

rr- avatar Aug 30 '17 11:08 rr-

Transmission does track global statistics. transmission-remote shows them with the -st option.

I would create a new command called statistics or stats that lists them similarly to the overview that is already available for individual torrents.

rndusr avatar Aug 30 '17 11:08 rndusr

On second thought, it would be useful to display ratio under ls as well - that way one could leverage the rich filter system.

rr- avatar Sep 04 '17 20:09 rr-

Not sure what you mean. Torrent list already have a column available for per-torrent ratio. Global ratio doesn't really fit in there.

rndusr avatar Sep 04 '17 20:09 rndusr

Sorry for not being clear. I meant average ratio of the filtered torrents.

rr- avatar Sep 04 '17 21:09 rr-

Where do you propose to put that in the TUI and CLI?

rndusr avatar Sep 04 '17 21:09 rndusr

In TUI it's a non-brainer - somewhere in the status bar, for example next to the average upload/download speed.

In CLI I'd replicate that status bar by putting a single line under the table like this:

...
 611Mi│     0│3.43Gi│ 5.75│   10│    1│  uploading│     │ 100│     0│  101k│xxx
 608Mi│     0│7.80Gi│ 13.1│   11│    1│  uploading│     │ 100│     0│  114k│xxx
 613Mi│     0│14.8Gi│ 24.8│    9│    0│    seeding│     │ 100│     0│     0│xxx
 605Mi│     0│10.5Gi│ 17.8│   13│    3│  uploading│     │ 100│     0│   91k│xxx
9.30Gi│34.6Mi│     0│    0│    2│    2│downloading│4d20h│0.36│  115k│     0│xxx

torrents: 16 (dl: 4 ul: 2)   avg ratio: 1.2   avg up: 14 kbps   avg dl: 15 kbps

And to help scripting possibly make it to hideable with --no-stats or sth.

rr- avatar Sep 04 '17 21:09 rr-

Ah, now I get it. Thanks for your patience.

I've had a similar idea: An extra row at the bottom of lists that would show a summary for each column. But I haven't put much thought into it because that's way down on my very long todo list.

rndusr avatar Sep 04 '17 21:09 rndusr

It would also be nice if it was possible to see the total ratio of all torrent activity on the bottom row, similarly to transmission-gtk:

transmissionbt 4782 demo1

fn-ix avatar Jul 04 '19 12:07 fn-ix