diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-06-04 12:17:07 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-06-04 12:17:07 +0300 |
| commit | 01c810c6a391cf96f7d486b1e41d2c76ecfb51f5 (patch) | |
| tree | f0684ae37357f84fad6d4f5e717b1501349c8db4 /Software/Visual_Studio/PPC/Tango.PPC.UI/Converters | |
| parent | 88b86ef619bd57e18fda7e8aad416cd0c0e33f45 (diff) | |
| download | Tango-01c810c6a391cf96f7d486b1e41d2c76ecfb51f5.tar.gz Tango-01c810c6a391cf96f7d486b1e41d2c76ecfb51f5.zip | |
PPC. Overview. Show progress in weight total when it is completed.
Related Work Items: #8405
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Converters')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs index 05a41912c..f451fe0d9 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs @@ -42,7 +42,7 @@ namespace Tango.PPC.UI.Converters var currentProgressBy4Spools = (double)currentProgresslength * 4; int coeff = (int)currentProgressBy4Spools / (int)totalBy4Spools; - var progressCurrent = coeff == 0 ? currentProgressBy4Spools : currentProgressBy4Spools % (coeff * totalBy4Spools);//show for progress + var progressCurrent = (coeff == 0 || coeff == 1) ? currentProgressBy4Spools : currentProgressBy4Spools % (coeff * totalBy4Spools);//show for progress var weight = ((double)progressCurrent * coef) / (1000);//(g) if (forOneSpool) { |
