From 2a0c2414ffeac8845611004609508688aa0f289f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 19 Dec 2007 11:22:50 +0000 Subject: Incorporated some more of doener's leet PHP skills. ;) --- tools/upalyzer/analyze.php | 5 ++--- 1 file 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, -- cgit v1.2.3-70-g09d2