mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-10-24 22:49:01 -04:00
Fix removed field
This commit is contained in:
1 parent
04827f81da
commit
8a84a083d1
1 file changed
+3
-3
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Dinah.Core;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace LibationCli;
|
||||
@@ -30,7 +31,6 @@ internal class ConsoleProgressBar
|
||||
}
|
||||
}
|
||||
|
||||
private double m_Progress;
|
||||
private TimeSpan m_RemainingTime;
|
||||
private int m_LastWriteLength = 0;
|
||||
private const int MAX_ETA_LEN = 10;
|
||||
@@ -51,7 +51,7 @@ internal class ConsoleProgressBar
|
||||
|
||||
private void WriteProgress()
|
||||
{
|
||||
var numCompleted = (int)Math.Round(double.Min(100, m_Progress) * m_NumProgressPieces / 100);
|
||||
var numCompleted = (int)Math.Round(double.Min(100, Progress?? 0) * m_NumProgressPieces / 100);
|
||||
var numRemaining = m_NumProgressPieces - numCompleted;
|
||||
var progressBar = $"[{new string(ProgressChar, numCompleted)}{new string(NoProgressChar, numRemaining)}] ";
|
||||
|
||||
|
||||
Reference in new issue
Block a user