diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-10-22 18:18:15 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-10-22 18:18:40 +0300 |
| commit | 91851a079afd4b3956753b7e393c63ae631b6df8 (patch) | |
| tree | 1ecabd1d6ae7d88a68256fe83211e7590563bfc7 /Software/Visual_Studio/PPC/Tango.PPC.UI | |
| parent | 7f2ff77f2fe695c13e9c36a9706ed6e63d0ece24 (diff) | |
| download | Tango-91851a079afd4b3956753b7e393c63ae631b6df8.tar.gz Tango-91851a079afd4b3956753b7e393c63ae631b6df8.zip | |
Bug in converter
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressLengthSpoolConverter.cs | 4 | ||||
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressLengthSpoolConverter.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressLengthSpoolConverter.cs index f43405085..3dd91806d 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressLengthSpoolConverter.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressLengthSpoolConverter.cs @@ -23,7 +23,7 @@ namespace Tango.PPC.UI.Converters var totalBy4Spools = (double)length* number_of_spools; if (forOneSpool) { - return (double)totalBy4Spools / 4; + return (double)totalBy4Spools / number_of_spools; } return totalBy4Spools; @@ -43,7 +43,7 @@ namespace Tango.PPC.UI.Converters if (forOneSpool) { - return (double)progressCurrent / 4; + return (double)progressCurrent / number_of_spools; } return progressCurrent; 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 7ffb1e8a7..f93e34c7d 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/ProgressWeightSpoolConverter.cs @@ -27,7 +27,7 @@ namespace Tango.PPC.UI.Converters var weight = ((double)totalBy4Spools * coef) / (1000);//(g) if (forOneSpool) { - return (double)weight / 4; + return (double)weight / number_of_spools; } return weight; @@ -48,7 +48,7 @@ namespace Tango.PPC.UI.Converters var weight = ((double)progressCurrent * coef) / (1000);//(g) if (forOneSpool) { - return (double)weight / 4; + return (double)weight / number_of_spools; } return weight; |
