Skip to content

Commit

Permalink
correct of the formula
Browse files Browse the repository at this point in the history
Signed-off-by: Vallabh Kansagara <vrkansagara@gmail.com>
  • Loading branch information
vrkansagara committed Dec 8, 2022
1 parent cf646a2 commit e7faa41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.
8 changes: 4 additions & 4 deletions src/Middleware/AfterMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ 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,
2
);
$percent = 100 - round(
($this->bufferNewSize * 100 ) / $this->bufferOldSize ,
2
);
$buffer
.= <<< EOF
<p style="
Expand Down

0 comments on commit e7faa41

Please sign in to comment.