Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
60ce0d14
Commit
60ce0d14
authored
Mar 19, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #164 from iandrewt/osx_uptime
changed osx_uptime parsing of seconds from case to if
parents
c120a4da
bb95137f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
neofetch
neofetch
+15
-15
No files found.
neofetch
View file @
60ce0d14
...
@@ -589,23 +589,23 @@ getuptime () {
...
@@ -589,23 +589,23 @@ getuptime () {
days=
$((
uptime
/
86400
))
days=
$((
uptime
/
86400
))
# Format the output like Linux's "
uptime
-p
" cmd.
# Format the output like Linux's "
uptime
-p
" cmd.
case "
$mins
" i
n
if [ "
$mins
" == 1 ]; the
n
0) ;;
uptime="
up
$mins
minute
"
1) uptime="
up
$mins
minute
" ;;
elif [ "
$mins
" != 0 ]; then
*) uptime="
up
$mins
minutes
" ;;
uptime="
up
$mins
minutes
"
esac
fi
case "
$hours
" i
n
if [ "
$hours
" == 1 ]; the
n
0) ;;
uptime="
up
$hours
hour,
${
uptime
/up
}
"
1) uptime="
up
$hours
hour,
${
uptime
/up
}
" ;;
elif [ "
$mins
" != 0 ]; then
*) uptime="
up
$hours
hours,
${
uptime
/up
}
" ;;
uptime="
up
$hours
hours,
${
uptime
/up
}
"
esac
fi
case "
$days
" i
n
if [ "
$days
" == 1 ]; the
n
0) ;;
uptime="
up
$days
day,
${
uptime
/up
}
"
1) uptime="
up
$days
day,
${
uptime
/up
}
" ;;
elif [ "
$days
" != 0 ]; then
*) uptime="
up
$days
days,
${
uptime
/up
}
" ;;
uptime="
up
$days
days,
${
uptime
/ up
}
"
esac
fi
;;
;;
"
Windows
")
"
Windows
")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment