private Progress ( ) : Microsoft.WindowsAzure.Commands.Sync.ProgressRecord | ||
return | Microsoft.WindowsAzure.Commands.Sync.ProgressRecord |
ProgressRecord Progress()
{
double computeAvg = ThrougputStats.ComputeAvg(ThroughputMBs());
double avtThroughputMbps = 8.0 * computeAvg;
double remainingSeconds = (RemainingMB() / computeAvg);
var pr = new ProgressRecord
{
PercentComplete = PercentComplete(),
AvgThroughputMbPerSecond = avtThroughputMbps,
RemainingTime = TimeSpan.FromSeconds(remainingSeconds)
};
return pr;
}