Skip to content

Commit

Permalink
- support xx_size in removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dm committed Jun 1, 2007
1 parent 1554bfa commit 2458432
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions iroffer-state.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#

$meta_generator = '
<meta name="generator" content="iroffer-state 2.8, iroffer.dinoex.net">
<meta name="generator" content="iroffer-state 2.9, iroffer.dinoex.net">
';

# IRC-Farbe-Codes ausblenden
Expand Down Expand Up @@ -471,14 +471,21 @@ function read_removed( $statefile ) {
continue;

if ( $key == 'xx_file' ) {
$fsize = filesize_cache( $text );
$xfile = $text;
$fsize = 0;
if ( isset( $this->seen[ $text ] ) )
continue;
$this->seen[ $text ] = 0;
$this->total[ 'packs' ] ++;
$this->total[ 'size' ] += $fsize;
}
if ( $key == 'xx_size' ) {
$fsize = $text;
}
if ( $key == 'xx_gets' ) {
if ( $fsize == 0 ) {
$fsize = filesize_cache( $xfile );
}
$this->total[ 'size' ] += $fsize;
$this->total[ 'xx_gets' ] += $text;
$this->total[ 'trans' ] += $fsize * $text;
}
Expand Down

0 comments on commit 2458432

Please sign in to comment.