Show transfers per second and ETA on the "Transferred:" count line

Aperta
#10,327 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli, observability

Direzione di ricerca

Start by locating the code that formats the “Transferred:” count line and the stats exposed through core/stats. The issue specifies a moving average sampled like byte speed, plus transferSpeed and transferEta fields; check the existing rate and ETA tests for the expected behavior. Done means the count line reports transfers per second and an ETA, and both stats are available through core/stats.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Before you start
  • I have searched the forum and the existing issues and this hasn't already been requested.
  • I have checked the latest beta and this feature doesn't already exist.
Associated forum post URL

No response

rclone version

rclone v1.76.0

  • os/version: debian 13.7 (64 bit)
  • os/kernel: 6.12.115+deb13.1-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.27.3
  • go/linking: static
  • go/tags: none
What problem are you trying to solve?

Problem: When copying many small files the current ETA (calculated for bytes) says little about how long the run will take.

Proposed fix: add a transfers-per-second rate (moving average, same sampling as the bytes speed) and an ETA to the count line, so instead of (for example):

Transferred: 218491 / 228515, 96%

It would show:

Transferred: 218491 / 228515, 96%, 3.95 T/s, ETA 42m18s

Note this changes the format of that log line, but only by adding the extra values at the end (therefore anyone parsing or filtering it, using REs or absolute field positions, would not be affected).

Also adds those stats as transferSpeed and transferEta to core/stats.

How do you think rclone should be changed to solve that?

I have a working patch with tests - OK to PR?

Getting involved
  • I'm willing to help implement, test or fund this feature.
Lingua principale
Go
Stelle
61.1k
Fork
5.7k
Merge medio
6g 15h
PR unite (30g)
51

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rclone/rclone

Tutte le issue di rclone/rclone

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.