diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-10-14 20:24:14 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-10-14 20:24:14 +0300 |
commit | 2709b9879e72d53f166e6dc0970961382c5563e2 (patch) | |
tree | f745f28b0bf54ecf9d8fced5c9e33f738359cb49 /main/src/addins/VersionControl | |
parent | d664854126a7a50126aefd8682152cca74f58c1e (diff) |
[Git] Restart the stopwatch on every update.
Diffstat (limited to 'main/src/addins/VersionControl')
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs index b5d8665616..3551218012 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs @@ -193,8 +193,10 @@ namespace MonoDevelop.VersionControl.Git } int steps = completedSteps - progress; - if (throttleWatch.ElapsedMilliseconds > progressThrottle) + if (throttleWatch.ElapsedMilliseconds > progressThrottle) { monitor.Step (steps); + throttleWatch.Restart (); + } progress = completedSteps; if (completedSteps >= totalSteps) { |