I changed weblist.pl to show campaign sizes in KB instead of bytes.
This commit is contained in:
parent
8046debdbb
commit
568059bf5a
2 changed files with 6 additions and 1 deletions
|
@ -56,6 +56,7 @@ SVN trunk:
|
|||
* updated weblist.pl to display translation information
|
||||
* updated weblist.pl and webtgz.pl to use standard wesnoth logo banner
|
||||
* updated webtgz.pl to request campaign info only for the campaign of interest
|
||||
* updated weblist.pl to display sizes in KB.
|
||||
* fix untranslated unit create dialog (#4424)
|
||||
* random map generator now uses island_size (#4458)
|
||||
* various bug fixes and code cleanups
|
||||
|
|
|
@ -239,7 +239,11 @@ foreach my $campaign (@sorted) {
|
|||
push @row, 'Unknown';
|
||||
}
|
||||
push @row, escapeHTML($campaign->{'attr'}->{'description'});
|
||||
push @row, escapeHTML($campaign->{'attr'}->{'size'});
|
||||
my $size = $campaign->{'attr'}->{'size'};
|
||||
$size += 512;
|
||||
$size -= $size % 1024;
|
||||
$size /= 1024;
|
||||
push @row, escapeHTML("$size KB");
|
||||
push @row, escapeHTML($campaign->{'attr'}->{'downloads'});
|
||||
push @rows, td(\@row);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue