X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Fjob-cost.sh;h=0d0e55ea271ef989e858f404321fff1b9591b4b2;hb=refs%2Fchanges%2F22%2F62822%2F3;hp=2264728db7084775d4b9036c5d9effa8b0aacba7;hpb=fc8963fdf93dfb1997bb8b11558c3876a2f75751;p=releng%2Fglobal-jjb.git diff --git a/shell/job-cost.sh b/shell/job-cost.sh index 2264728d..0d0e55ea 100644 --- a/shell/job-cost.sh +++ b/shell/job-cost.sh @@ -39,7 +39,7 @@ else fi # Retrieve the current uptime (in seconds) -uptime=$(cat /proc/uptime | awk '{print $1}') +uptime=$(awk '{print $1}' /proc/uptime) # Convert to integer by truncating fractional part' and round up by one ((uptime=${uptime%\.*}+1))