From ef995829e779272c41d9dc7974a8a15139ec6ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Omn=C3=A8s?= Date: Fri, 22 Sep 2023 13:31:35 +0200 Subject: [PATCH] Fix number of links in deprecated output file digest.txt (#1646) --- src/solver/variable/surveyresults/surveyresults.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/solver/variable/surveyresults/surveyresults.cpp b/src/solver/variable/surveyresults/surveyresults.cpp index 47e676f280..052e7ab383 100644 --- a/src/solver/variable/surveyresults/surveyresults.cpp +++ b/src/solver/variable/surveyresults/surveyresults.cpp @@ -567,12 +567,15 @@ void SurveyResults::exportDigestAllYears(std::string& buffer) { // Main Header { + const unsigned int nbLinks = data.study.runtime->interconnectionsCount(); buffer.append("\tdigest\n\tVARIABLES\tAREAS\tLINKS\n") .append("\t") .append(std::to_string(data.columnIndex)) .append("\t") .append(std::to_string(data.rowCaptions.size())) - .append("\t0\n\n"); + .append("\t") + .append(std::to_string(nbLinks)) + .append("\n\n"); } // Header - All columns for (uint rowIndex = 0; rowIndex != captionCount; ++rowIndex)