projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0111eda
)
NotifySend.php
author
Alan Knowles
<alan@akkbhome.com>
Wed, 6 Apr 2011 15:52:13 +0000
(23:52 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Wed, 6 Apr 2011 15:52:13 +0000
(23:52 +0800)
NotifySend.php
patch
|
blob
|
history
diff --git
a/NotifySend.php
b/NotifySend.php
index
fd79140
..
045d700
100644
(file)
--- a/
NotifySend.php
+++ b/
NotifySend.php
@@
-66,12
+66,11
@@
class Pman_Core_NotifySend extends Pman
$ev->orderBy('event_when DESC');
$ar = $ev->fetchAll('event_when');
$last_event = empty($ar) ? 0 : $ar[0];
- $next_try
= '5 MINUTES'
;
+ $next_try
_min = 5
;
if ($last_event) {
-
-
+ $next_try_min = floor((time() - strtotime($last_event)) / 60) * 2;
}
-
+ $next_try = $next_try_min . ' MINUTES';
$email = $o->toEmail($p,$last);