summaryrefslogtreecommitdiffstats
path: root/btimed.c
Commit message (Collapse)AuthorAgeFilesLines
* We shouldn't need to round the boot time anymoreNathan Straz2013-09-111-1/+0
|
* update btime and hbeat libs to understand ipv6 as well as ipv4.Dean Jansa2010-09-031-1/+1
|
* [btimed] Use /proc/uptime when availableNathan Straz2008-10-141-2/+15
| | | | | | | It turns out the boot time being returned to btimec is has not been correct for quite a while. There was probably a change to HZ which isn't reflected properly in _SC_CLK_TCK. This needs some more error checking, but it works for now.
* Update copyright dates.Nate Straz2008-09-231-1/+1
|
* Reduce the amount of rounding. Since btimed doesn't go away anymore, we ↵Nate Straz2008-09-231-2/+2
| | | | don't need to round so much.
* Every time btimed is restarted we could get a slightly different boot time.Nate Straz2008-09-231-7/+2
| | | | | | | | qarsh is the primary user of btimed, but it only sends a btime request when it hasn't received output for 5 seconds. If output is streaming for more than 30 seconds, btimed would exit. When the output quiets down again and btimed starts up, it could get a slightly different uptime and round in the opposite direction.
* Use time() - times() instead of reading /proc/stat.Nate Straz2008-09-231-20/+7
|
* Add copyright notices and GPL headerNate Straz2008-09-231-0/+19
|
* Add cookies to the heartbeat packet for added safety.v1.10-1Nate Straz2008-09-231-5/+18
| | | | | | | | | Two factors forced this change. 1. ports were being re-used so quickly that we could get lingering packets from past hosts when getting the btime for a new host. 2. We can't control which IP a btime response is sent from if a system has more than one interface. Adding a cookie allows us to know that a response came from whom we sent it.
* Add some more logging to try to nail the false reboot bug.Nate Straz2008-09-231-1/+5
|
* Bail out if our recvfrom fails due to alarm or error -- client side resends ↵Dean Jansa2008-09-231-0/+7
| | | | requests so no need to retry in server
* Keep btimed around to hand out btime packets until no one has asked for oneNate Straz2008-09-231-9/+19
| | | | | | in 30 seconds. Fix the servce name in the btimed xinetd config file
* Merge r1727 from sistina-test branch djansa-qarshNate Straz2008-09-231-199/+13
|
* Flatten the qarsh tree.Nate Straz2008-09-231-0/+271