Skip to content

Commit

Permalink
get_msec use local var
Browse files Browse the repository at this point in the history
  • Loading branch information
joknarf committed Oct 15, 2023
1 parent cee6a55 commit ed68cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nerdps1
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ function ps1_login {
function ps1_get_mseconds
{
typeset s
typeset s __
[ -r /proc/uptime ] && [ ! "$ps1_use_seconds" ] && {
read s _ </proc/uptime
read s __ </proc/uptime
echo ${s/[.]/}
} || echo "${SECONDS}00"
}
Expand Down

0 comments on commit ed68cbe

Please sign in to comment.