Browse Source

Fix deprecation count inversion

dhasenan 4 years ago
parent
commit
0414d19b46
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      source/dubautotester/html.d

+ 3
- 2
source/dubautotester/html.d View File

@@ -147,6 +147,7 @@ void buildIndex(string path, Config config)
147 147
         auto summaries = config.getCompilerSummaries;
148 148
         foreach (summary; summaries)
149 149
         {
150
+            auto deprecationPasses = summary.packageCount - summary.deprecationCount;
150 151
             f.writef(`
151 152
       <tr>
152 153
         <td><a href="compiler/dmd%s.html">%1$s</a></td>
@@ -164,8 +165,8 @@ void buildIndex(string path, Config config)
164 165
                 (100.0 * summary.buildCount / summary.packageCount),
165 166
                 summary.testCount,
166 167
                 (100.0 * summary.testCount / summary.packageCount),
167
-                summary.deprecationCount,
168
-                (100.0 * summary.deprecationCount / summary.packageCount)
168
+                deprecationPasses,
169
+                (100.0 * deprecationPasses / summary.packageCount)
169 170
             );
170 171
         }
171 172
         f.write(`