From: maxim Date: Tue, 18 Sep 2007 09:33:37 +0000 (+0000) Subject: i=eeb X-Git-Tag: v1_7_0_51~728 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b4dd6cd439e56506b196a62a2adcc32808ee8be3;p=fs%2Flustre-release.git i=eeb - Minor bugfix on calculation of "last alive" time value. --- diff --git a/lnet/klnds/socklnd/socklnd.c b/lnet/klnds/socklnd/socklnd.c index 66410e9..3f7cb86 100644 --- a/lnet/klnds/socklnd/socklnd.c +++ b/lnet/klnds/socklnd/socklnd.c @@ -1464,9 +1464,7 @@ ksocknal_peer_failed (ksock_peer_t *peer) peer->ksnp_accepting == 0 && ksocknal_find_connecting_route_locked(peer) == NULL) { notify = 1; - last_alive = cfs_time_current_sec() - - cfs_duration_sec(cfs_time_current() - - peer->ksnp_last_alive); + last_alive = cfs_time_seconds(peer->ksnp_last_alive); } read_unlock (&ksocknal_data.ksnd_global_lock);