Permalink
Browse files

better calculation of page length

  • Loading branch information...
Ted Timmons
Ted Timmons committed Jun 8, 2010
1 parent 0c7c791 commit b66eca8071b509ae2c0c679a3d8b4d620b49566a
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/current.pl
View
@@ -205,7 +205,7 @@ sub removeCurrentTemplate {
$content =~ s#\{\{current([^{}]*?)\}\}##i;
my $newlength = length $content;
if (($oldlength - $newlength) > 100) {
if (abs(length $oldlength - length $newlength) > 100) {
_debug("eep! tried removing the current template and we must have done much more. We're scared, so we'll bail.\n");
return -100;
}

0 comments on commit b66eca8

Please sign in to comment.