Bug Fix: Task progress incorrectly calculated

This commit is contained in:
Gary Sharp
2014-07-29 14:17:58 +10:00
parent ea80876286
commit f01bc940f6
+2 -1
View File
@@ -107,6 +107,7 @@ namespace Disco.Services.Tasks
this._currentProcess = "Scheduled"; this._currentProcess = "Scheduled";
this._currentDescription = "Scheduled Task for Execution"; this._currentDescription = "Scheduled Task for Execution";
this.ProgressMultiplier = 1;
this._progress = 0; this._progress = 0;
} }
@@ -381,7 +382,7 @@ namespace Disco.Services.Tasks
this._progress = 0; this._progress = 0;
changedProperties.Add(new ChangedItem("Progress", this._progress)); changedProperties.Add(new ChangedItem("Progress", this._progress));
} }
this.ProgressMultiplier = 0; this.ProgressMultiplier = 1;
this.ProgressOffset = 0; this.ProgressOffset = 0;
this.IgnoreCurrentDescription = false; this.IgnoreCurrentDescription = false;
this.IgnoreCurrentProcessChanges = false; this.IgnoreCurrentProcessChanges = false;