summaryrefslogtreecommitdiff
path: root/tempmon.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-14 17:58:46 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-14 17:58:46 -0500
commit34c99f99a51c661ab36ae9a148e2ea2f8e09ecc6 (patch)
tree0d7ed9784602bad5daedc95c9431ab35c90c919a /tempmon.sh
parent20fa1c5e300c7e0435b368a91cdcda85e99e5fc9 (diff)
daemon: change get_ident()
The new method still uses the start time of the process, but figures and formats it differently. The new way takes the time in "jiffies" since the system booted, using `/proc/$pid/stat`. The old way used `lstart` from `ps`, which calculated the time by adding that to the boot time. This can drift though, as NTP adjusts the system time. I was frequently seeing one second discrepancies, causing duplicate processes to spawn.
Diffstat (limited to 'tempmon.sh')
0 files changed, 0 insertions, 0 deletions