Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

uptime: refactor, move some codes to uucore #7289

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Bluemangoo
Copy link

@Bluemangoo Bluemangoo commented Feb 9, 2025

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)

@Bluemangoo
Copy link
Author

Some functions throw errors, should I create a thiserror enum? or is there a existed one i can add some entries?

Copy link

github-actions bot commented Feb 9, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@Bluemangoo Bluemangoo force-pushed the feature/refactor-uptime branch 2 times, most recently from a4b78ae to 7fd063b Compare February 10, 2025 09:47
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@Bluemangoo Bluemangoo force-pushed the feature/refactor-uptime branch 2 times, most recently from 3346622 to 2a69c60 Compare February 10, 2025 12:50
@Bluemangoo Bluemangoo force-pushed the feature/refactor-uptime branch from 2a69c60 to c704d7f Compare February 10, 2025 13:10
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@Bluemangoo
Copy link
Author

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 :(

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant