Skip to content

Commit 9cf9d7b

Browse files
author
asdfjkl
committed
bugfix (was: division by zero if empty queue)
1 parent 7d730c7 commit 9cf9d7b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

yahb/CopyModule.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ public void doCopy()
376376
var sourceDestFiles = this.sourceFileList.Zip(this.destFileList, (a, b) => new { sourceFile = a, destFile = b });
377377
int counter = 0;
378378
int cntAll = sourceDestFiles.Count();
379+
if(cntAll == 0)
380+
{
381+
cntAll = 1;
382+
}
379383
int onePercent = (int) ((float) cntAll / 100.0);
380384
var watch = System.Diagnostics.Stopwatch.StartNew();
381385
cfg.WriteProgressBar("copying files: ", "", 0);

yahb/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
3333
// indem Sie "*" wie unten gezeigt eingeben:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.3.0")]
36-
[assembly: AssemblyFileVersion("1.0.3.0")]
35+
[assembly: AssemblyVersion("1.0.4.0")]
36+
[assembly: AssemblyFileVersion("1.0.4.0")]

0 commit comments

Comments
 (0)