Pass more specific structures to pv_calculate_transfer_rate rather than the whole state (#165).

This commit is contained in:
Andrew Wood
2025-07-26 19:22:07 +01:00
parent b3c854b27a
commit 3b0891b128
4 changed files with 72 additions and 64 deletions
+1 -1
View File
@@ -490,7 +490,7 @@ typedef struct pvwatchfd_s *pvwatchfd_t;
void pv_error(pvstate_t, char *, ...);
int pv_main_loop(pvstate_t);
void pv_calculate_transfer_rate(pvstate_t, bool);
void pv_calculate_transfer_rate(pvtransfercalc_t, pvtransferstate_t, pvcontrol_t, pvdisplay_t, bool);
long pv_bound_long(long, long, long);
long pv_seconds_remaining(const off_t, const off_t, const long double);