Changeset 1668 for trunk/eraser6
- Timestamp:
- 1/25/2010 4:12:10 AM (3 years ago)
- Location:
- trunk/eraser6/Eraser.Manager
- Files:
-
- 2 edited
-
DirectExecutor.cs (modified) (1 diff)
-
ProgressManager.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Manager/DirectExecutor.cs
r1665 r1668 443 443 //Set the length of the file to be the amount of free space left 444 444 //or the maximum size of one of these dumps. 445 mainProgress.Total = mainProgress.Completed + volInfo.AvailableFreeSpace; 445 mainProgress.Total = mainProgress.Completed + 446 method.CalculateEraseDataSize(null, volInfo.AvailableFreeSpace); 446 447 long streamLength = Math.Min(ErasureMethod.FreeSpaceFileUnit, 447 448 mainProgress.Total); -
trunk/eraser6/Eraser.Manager/ProgressManager.cs
r1515 r1668 100 100 public long Completed 101 101 { 102 get; 103 set; 102 get 103 { 104 return completed; 105 } 106 set 107 { 108 if (value > Total) 109 throw new ArgumentOutOfRangeException("value", value, "The Completed " + 110 "property of the Progress Manager cannot exceed the total work units for " + 111 "the task."); 112 113 completed = value; 114 } 104 115 } 105 116 … … 109 120 public long Total 110 121 { 111 get; 112 set; 122 get 123 { 124 return Total; 125 } 126 set 127 { 128 if (value < Completed) 129 throw new ArgumentOutOfRangeException("value", value, "The Total property " + 130 "of the Progress Manager must be greater than or equal to the completed " + 131 "work units for the task."); 132 133 Total = value; 134 } 113 135 } 114 136 … … 172 194 /// </summary> 173 195 private int lastSpeed; 196 197 /// <summary> 198 /// The backing field for <see cref="Completed"/> 199 /// </summary> 200 private long completed; 201 202 /// <summary> 203 /// The backing field for <see cref="Total"/> 204 /// </summary> 205 private long total; 174 206 } 175 207
Note: See TracChangeset
for help on using the changeset viewer.
