Skip to content
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

ncneofetch: use sysctl to get cpu info on freebsd #1284

Closed
dankamongmen opened this issue Jan 12, 2021 · 6 comments
Closed

ncneofetch: use sysctl to get cpu info on freebsd #1284

dankamongmen opened this issue Jan 12, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request freebsd the freest of bsds, but not very dragonFLY hax0rs-wanted looking to hack on notcurses? try these
Milestone

Comments

@dankamongmen
Copy link
Owner

hw.machine: amd64
hw.model: Intel(R) Xeon(R) CPU           X3220  @ 2.40GHz
hw.ncpu: 4
hw.machine_arch: amd64

hw.model and hw.ncpu both seem relevant to our interests.

@dankamongmen dankamongmen added enhancement New feature or request hax0rs-wanted looking to hack on notcurses? try these freebsd the freest of bsds, but not very dragonFLY labels Jan 12, 2021
@dankamongmen dankamongmen added this to the 2.2.0 milestone Jan 12, 2021
@dankamongmen dankamongmen self-assigned this Jan 12, 2021
@dankamongmen
Copy link
Owner Author

                                     ,        ,
                                    /(        )`
                                    \ \___   / |
                                    /- _  `-/  '
                                   (/\/ \ \   /\
                                   / /   | `    \
                                   O O   ) /    |
                                   `-^--'`<     '
                                  (_.)  _  )   /
                                   `.___/`    /
                                     `-----' /
                        <----.     __ / __   \
                        <----|====O)))==) \) /====|
                        <----'    `--' `.__,' \
                                     |        |
                                      \       /       /\
                                 ______( (_  / \______/
                               ,'  ,-----'   |
                               `--{__________)
                    (no image file is known for your distro)
    ───────────────────────────────[ dank@ ]────────────────────────────────
    │FreeBSD 12.1-RELEASE                                                  │
    │                                                                      │
    │DM: (null)                                  Shell: /usr/local/bin/bash│
    │TERM: vte-256color                                        Screen0: 0x0│
    │LANG: en_US.UTF-8                                            UID: 1001│
    │               QEMU Virtual CPU version 2.5+ (8 cores)                │
    ╰──────────────────────────────────────────────────────────────────────╯

@dankamongmen
Copy link
Owner Author

yay!

@dankamongmen
Copy link
Owner Author

tested, works, w00t! @liweitianux, if DragonFly supports CTL_HW's HW_NCPU and HW_MODEL, it'll work there, also. fix is in 2.1.5.

@liweitianux
Copy link

Cool. I'll give it a try on DragonFly tomorrow.

@liweitianux
Copy link

Sorry for my delay.

I've tested the latest master (commit: 8077fc4) and the sysctl works on DragonFly.

Screenshot_2021-01-18_09-29-35

Thank you for the work!

@dankamongmen
Copy link
Owner Author

YAY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request freebsd the freest of bsds, but not very dragonFLY hax0rs-wanted looking to hack on notcurses? try these
Projects
None yet
Development

No branches or pull requests

2 participants