Feat: send network average speed to the server

This commit is contained in:
Laurent Clouet
2021-06-22 16:10:35 +02:00
parent 138d68f791
commit 6a483e9885
2 changed files with 7 additions and 1 deletions

View File

@@ -33,4 +33,8 @@ public class TransferStats {
return Utils.formatDataConsumption((long) (this.bytes / (0.1f)));
}
}
public long getRawAverageSessionSpeed() {
return this.millis != 0 ? (long) (this.bytes / (this.millis / 1000f)) : 0;
}
}