|
libzypp 17.36.7
|
#include <zypp/media/detail/DownloadProgressTracker.h>
Public Types | |
| using | clock = std::chrono::steady_clock |
Public Member Functions | |
| void | updateStats (double dltotal=0.0, double dlnow=0.0) |
Public Attributes | |
| std::optional< clock::time_point > | _timeStart |
| Start total stats. | |
| std::optional< clock::time_point > | _timeLast |
| Start last period(~1sec) | |
| double | _dnlTotal = 0.0 |
| Bytes to download or 0 if unknown. | |
| double | _dnlLast = 0.0 |
| Bytes downloaded at period start. | |
| double | _dnlNow = 0.0 |
| Bytes downloaded now. | |
| int | _dnlPercent = 0 |
| Percent completed or 0 if _dnlTotal is unknown. | |
| double | _drateTotal = 0.0 |
| Download rate so far. | |
| double | _drateLast = 0.0 |
| Download rate in last period. | |
Definition at line 17 of file DownloadProgressTracker.h.
| using zypp::internal::ProgressTracker::clock = std::chrono::steady_clock |
Definition at line 19 of file DownloadProgressTracker.h.
| void zypp::internal::ProgressTracker::updateStats | ( | double | dltotal = 0.0, |
| double | dlnow = 0.0 ) |
Definition at line 15 of file DownloadProgressTracker.cc.
| std::optional<clock::time_point> zypp::internal::ProgressTracker::_timeStart |
Start total stats.
Definition at line 21 of file DownloadProgressTracker.h.
| std::optional<clock::time_point> zypp::internal::ProgressTracker::_timeLast |
Start last period(~1sec)
Definition at line 22 of file DownloadProgressTracker.h.
| double zypp::internal::ProgressTracker::_dnlTotal = 0.0 |
Bytes to download or 0 if unknown.
Definition at line 24 of file DownloadProgressTracker.h.
| double zypp::internal::ProgressTracker::_dnlLast = 0.0 |
Bytes downloaded at period start.
Definition at line 25 of file DownloadProgressTracker.h.
| double zypp::internal::ProgressTracker::_dnlNow = 0.0 |
Bytes downloaded now.
Definition at line 26 of file DownloadProgressTracker.h.
| int zypp::internal::ProgressTracker::_dnlPercent = 0 |
Percent completed or 0 if _dnlTotal is unknown.
Definition at line 28 of file DownloadProgressTracker.h.
| double zypp::internal::ProgressTracker::_drateTotal = 0.0 |
Download rate so far.
Definition at line 30 of file DownloadProgressTracker.h.
| double zypp::internal::ProgressTracker::_drateLast = 0.0 |
Download rate in last period.
Definition at line 31 of file DownloadProgressTracker.h.