更新了
Search Criteria
Package Details: startuptime 6-1
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2014-08-05)
| Package Base: | startuptime |
|---|---|
| Description: | A simple tool to show the time taken to boot the OS and compare your time with others (Linux boot with systemd only) |
| Upstream URL: | https://github.com/Kelvin-Ng/startuptime-client |
| Category: | system |
| Licenses: | |
| Submitter: | qpalz |
| Maintainer: | qpalz |
| Last Packager: | None |
| Votes: | 6 |
| First Submitted: | 2013-01-06 05:10 |
| Last Updated: | 2013-01-11 04:45 |
Dependencies (3)
Required by (0)
Sources
Latest Comments
Comment by 4679kun
Comment by mrbit
so , work..
in the PKGBUILD add line 24 sed -i '25s|":"|"?"|g' startuptime.sh
Comment by mrbit
strange ...seems to be a problem codicfica character "?"--> ":"
Comment by mrbit
error --> kded4 -v|tail -n +2|head -n +1|cut -d"::" -f2
ok ---> kded4 -v|tail -n +2|head -n +1|cut -d"?:" -f2
Comment by mrbit
yes ...!!!!
Comment by qpalz
@mrbit
... Strange...
Downloading the source directly works but using PKGBUILD does not work...
Comment by mrbit
package v6.tar.gz
Comment by qpalz
@mrbit
What is /home/mrbit/aur3/startuptime/src/startuptime-client-6/startuptime.sh? Come from directly downloading the source or makepkg?
Comment by mrbit
done: !!!!?!??!!?
/home/mrbit/aur3/startuptime/src/startuptime-client-6/startuptime.sh
cut: the delimiter must be a single character
Try 'cut --help' for more information.
Comment by qpalz
Try download the PKGBUILD again, clean everything, and install it again then... Really strange...
Comment by mrbit
..!?!? yeesss !!! why...
Comment by qpalz
@mrbit
Really work?! Really strange!
Comment by mrbit
!!!! ok done.
work..!!?!?!?
Comment by qpalz
@mrbit
You mean no one tell you about that? Try downloading the source directly and extract it. Run ./startuptime.sh then.
Comment by mrbit
installing so out of curiosity...try...
Comment by qpalz
@mrbit
Really quite strange... As the author of this script, I do not know what is happening.
Actually, I would like to know how do you know this script?
Comment by mrbit
startuptime.sh
cut: the delimiter must be a single character
Try 'cut --help' for more information.
Strange !!!??..!!
Comment by qpalz
@mrbit
There is really no problem! There is only one character between each '' and there should not be this error.
Comment by mrbit
checkUpdate
uptime=`cat /proc/uptime | cut -d'.' -f1`
outUptime=$(formatTime $uptime)
bootTime_tmp=`systemd-analyze | cut -d' ' -f13`
if [ -z "$bootTime_tmp" ]; then
bootTime_tmp=`systemd-analyze | cut -d' ' -f10`
fi
bootTime_tmp=`echo $bootTime_tmp | cut -d'm' -f1`
bootTime=$((bootTime_tmp / 1000))
outBootTime=$(formatTime $bootTime)
desktopTime=$(($uptime - $bootTime))
outDesktopTime=$(formatTime desktopTime)
outPos=$(getpos)
pos=`echo $outPos | cut -d'/' -f1`
num=`echo $outPos | cut -d'/' -f2`
percent=$(((num - pos) * 100 / num))
outDS
Comment by qpalz
@mrbit
Well, it seems that there is no any problem. Actually, it works for me and even many people. But where are line 66 and 67?
Comment by mrbit
checkUpdate
uptime=`cat /proc/uptime | cut -d'.' -f1`
outUptime=$(formatTime $uptime)
bootTime_tmp=`systemd-analyze | cut -d' ' -f13`
if [ -z "$bootTime_tmp" ]; then
bootTime_tmp=`systemd-analyze | cut -d' ' -f10`
fi
bootTime_tmp=`echo $bootTime_tmp | cut -d'm' -f1`
Comment by qpalz
@mrbit
Could you please post me line 54, 56, 58, 60, 66 and 67?
Comment by mrbit
startuptime.sh
cut: the delimiter must be a single character
Try 'cut --help' for more information.