Skip to content

Commit

Permalink
Fixed the calc between old/missed drips
Browse files Browse the repository at this point in the history
Now it works.
  • Loading branch information
ItaloBC authored Dec 9, 2017
1 parent 37426aa commit fe3c184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dripper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function getHtmlAttribute() : string
. "}"
. "setInterval(function () { caffeineSendDrip(); }, $this->interval);"
. "setInterval(function () {"
. " if (new Date() - ld >= $this->threshold ) {"
. " if (new Date() - ld >= $this->interval + $this->threshold) {"
. " location.reload(true);"
. " }"
. "}, $this->checkInterval);"
Expand Down

0 comments on commit fe3c184

Please sign in to comment.