Skip to content

Commit

Permalink
Merge pull request #30 from vrkansagara/dev-master
Browse files Browse the repository at this point in the history
correct of the formula
  • Loading branch information
vrkansagara authored Dec 8, 2022
2 parents cf646a2 + 11e7448 commit 9ffb3c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified Images/LaraOutPress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vrkansagara/lara-out-press",
"description": "This is simply compress your final out of Larvel Application and serve to the browser.",
"description": "This is simply compress your final out of Laravel Application and serve to the browser.",
"keywords": [
"laravel",
"compress"
Expand Down
4 changes: 2 additions & 2 deletions src/Middleware/AfterMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ public function handle($request, Closure $next)
if ($isDebug) {
$old = LaraOutPress::formatSizeUnits($this->bufferOldSize);
$new = LaraOutPress::formatSizeUnits($this->bufferNewSize);
$percent = round(
($this->bufferNewSize / $this->bufferOldSize) * 100,
$percent = 100 - round(
($this->bufferNewSize * 100 ) / $this->bufferOldSize,
2
);
$buffer
Expand Down

0 comments on commit 9ffb3c7

Please sign in to comment.