Skip to content

Commit

Permalink
Gzip raw test results before inserting it into the database; for now,…
Browse files Browse the repository at this point in the history
… just ungzip it for display, needs further work to just server the gzipped data with the proper Content-Encoding header
  • Loading branch information
Jörn Zaefferer committed Dec 5, 2009
1 parent 858ed34 commit 27a65cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/runresults.php
Expand Up @@ -6,6 +6,6 @@
$run_id, $client_id);

if ( $row = mysql_fetch_array($result) ) {
echo $row[0];
echo gzuncompress($row[0]);
}
?>
2 changes: 1 addition & 1 deletion logic/saverun.php
Expand Up @@ -5,7 +5,7 @@
$fail = preg_replace("/[^0-9-]/", "", getItem('fail', $_POST, ''));
$error = preg_replace("/[^0-9-]/", "", getItem('error', $_POST, ''));
$total = preg_replace("/[^0-9-]/", "",getItem('total', $_POST, ''));
$results = getItem('results', $_POST, '');
$results = gzcompress(getItem('results', $_POST, ''));

# Make sure we've received some results from the client
if ( $results ) {
Expand Down

0 comments on commit 27a65cc

Please sign in to comment.