function lastContact() {
return $this->timeaway($this->last_contact);
}
+ function stale() {
+ $now = time();
+ $STALE_LENGTH = 60*60; /* TODO: set by some policy */
+ if ( $this->last_contact + $STALE_LENGTH > $now ) {
+ return False;
+ } else {
+ return True;
+ }
+ }
function timeaway($val) {
if ( $val != NULL ) {
$ret = timeDiff(intval($val));
// boot area
$details->space ();
-$details->th_td ("Observed Boot state",$run_level);
+$details->th_td ("Observed Boot state",$run_level . ( $Node->stale() ? " -- stale value" : "" ));
if ( ! ($local_peer && $privileges)) {
// just display it
$boot_value=$boot_state;