Microsoft.WindowsAzure.Commands.Sync.ProgressStatus.Progress C# (CSharp) Méthode

Progress() private méthode

private Progress ( ) : Microsoft.WindowsAzure.Commands.Sync.ProgressRecord
Résultat 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;
        }