projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reduce frequency of heatbeat
[Pman.Core]
/
Heartbeat.php
diff --git
a/Heartbeat.php
b/Heartbeat.php
index
27c1bf8
..
b95c3be
100644
(file)
--- a/
Heartbeat.php
+++ b/
Heartbeat.php
@@
-38,6
+38,10
@@
class Pman_Core_Heartbeat extends Pman
}
$cd->find(true);
$cc = clone($cd);
+ if ( (time() - strtotime($cc->display_name)) < 30) {
+ die("OK - HEATBEAT TO FREQUENT");
+ }
+
$cd->display_name = date("Y-m-d H:i:s");
$cd->update($cc);
die("OK - HEARTBEAT WORKING");