-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
uptime: refactor, move some codes to uucore #7289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Some functions throw errors, should I create a thiserror enum? or is there a existed one i can add some entries? |
GNU testsuite comparison:
|
a4b78ae
to
7fd063b
Compare
GNU testsuite comparison:
|
2a69c60
to
c704d7f
Compare
GNU testsuite comparison:
|
I encountered a problem: How to install libsystemd-dev for the corresponding arch in cross. in cross image there are no apt source for it(only amd64 and i386). For example, in armhf, I try to add source(in pre-build command, and then install): dpkg --add-architecture armhf&&echo 'deb [arch=armhf] http://ports.ubuntu.com/ bionic main restricted
deb [arch=armhf] http://ports.ubuntu.com/ bionic-updates main restricted
deb [arch=armhf] http://ports.ubuntu.com/ bionic universe
deb [arch=armhf] http://ports.ubuntu.com/ bionic-updates universe
deb [arch=armhf] http://ports.ubuntu.com/ bionic multiverse
deb [arch=armhf] http://ports.ubuntu.com/ bionic-updates multiverse
deb [arch=armhf] http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse'>>/etc/apt/sources.list&&apt-get update Failed for dependent conflicts :( |
c704d7f
to
c6c1dc5
Compare
GNU testsuite comparison:
|
c6c1dc5
to
585b84e
Compare
585b84e
to
5a28db5
Compare
GNU testsuite comparison:
|
GNU testsuite comparison:
|
Done! Maintainers can start review now. |
all fixed. |
Move some code from uu_uptime to uucore, to use them in uu_top.
It may duplicate #7256. When I started, #7256 was not yet open.
I also implement Windows(except load average, it seems impossible)