diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-12-19 11:22:50 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-12-19 11:22:50 +0000 |
commit | 2a0c2414ffeac8845611004609508688aa0f289f (patch) | |
tree | f9ae6fbd02a8addd626a798056136cdb314aa15b /tools | |
parent | 37115a224e9f1cfecc5db37285885fe8b2d60964 (diff) | |
download | mana-2a0c2414ffeac8845611004609508688aa0f289f.tar.gz mana-2a0c2414ffeac8845611004609508688aa0f289f.tar.bz2 mana-2a0c2414ffeac8845611004609508688aa0f289f.tar.xz mana-2a0c2414ffeac8845611004609508688aa0f289f.zip |
Incorporated some more of doener's leet PHP skills. ;)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/upalyzer/analyze.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/upalyzer/analyze.php b/tools/upalyzer/analyze.php index d2f8cb2a..106fcbb5 100644 --- a/tools/upalyzer/analyze.php +++ b/tools/upalyzer/analyze.php @@ -43,11 +43,10 @@ $update_entry_maxlen = 0; foreach ($update_file as $update_line) { - $splitted = split(' ', $update_line, 2); - $file = $splitted[0]; + list($file, $hash) = explode(' ', trim($update_line), 2); $update = array( 'file' => $file, - 'adler32' => trim($splitted[1]), + 'adler32' => $hash, 'filesize' => filesize($file), 'size' => 0, 'used_entry_count' => 0, |