mika / jenkins-debian-glue

Scripts for Debian package/repository handling inside Jenkins
MIT License
131 stars 91 forks source link

`/proc/uptime` missing decimal point causing havoc all around #153

Closed oerdnj closed 8 years ago

oerdnj commented 8 years ago

My /proc/uptime output looks like this:

# cat /proc/uptime 
16186 0

It's an LXC guest, so it might be the culprit, anyway there's a simple fix, first cut the number then remove ..*:

  [ -n "$start_seconds" ] && SECONDS="$[$(cut -d ' ' -f 1 /proc/uptime | cut -f 1 -d .)-$start_seconds]" || SECONDS="unknown"
mika commented 8 years ago

Sorry for the late reply, this should be fixed by 16f0ba5565435e12cb211c686bd5a49cb073252e nowadays. Thanks for reporting and please let me know if there should be any further issues.