Code Duplication    Length = 5-5 lines in 2 locations

html/inc/host.inc 2 locations

@@ 159-163 (lines=5) @@
156
    row2(tra("Measured integer speed"), tra("%1 billion ops/sec", $y));
157
    $x = $host->n_bwup/KILO;
158
    $y = round($x, 2);
159
    if ($y > 0) {
160
        row2(tra("Average upload rate"), tra("%1 KB/sec", $y));
161
    } else {
162
        row2(tra("Average upload rate"), tra("Unknown"));
163
    }
164
    $x = $host->n_bwdown/KILO;
165
    $y = round($x, 2);
166
    if ($y > 0) {
@@ 166-170 (lines=5) @@
163
    }
164
    $x = $host->n_bwdown/KILO;
165
    $y = round($x, 2);
166
    if ($y > 0) {
167
        row2(tra("Average download rate"), tra("%1 KB/sec", $y));
168
    } else {
169
        row2(tra("Average download rate"), tra("Unknown"));
170
    }
171
    $x = $host->avg_turnaround/86400;
172
    if (!NO_COMPUTING) {
173
        row2(tra("Average turnaround time"), tra("%1 days", round($x, 2)));