Skip to content

MacOS Implementation #5

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

arturovilla
Copy link

@arturovilla arturovilla commented Jun 10, 2024

The project looked pretty cool on twitter so I thought i would give it a go for MacOS.

Fair warning I only had today and I couldn't get some things to work:
There are some code comments but I couldn't get CPU FREQ to work since Apple stopped supporting the sysctl -n hw.cpufrequency . Not even sure they dropped support for it but it doesn't work for Apple silicon machines,

I could maybe get it with powermetrics but that requires sudo and a time interval so I chose to let it go for now.

Hypervisor Vendor name is also missing best I could do it to see if the hypervisor was enabled.

Kinda tired so if you need me to delete some comments, write some readme, or think of another implementation just lmk.
SS_6A3A9LrQ_1127PM@2x

@x-t
Copy link

x-t commented Jun 10, 2024

./machine_report.sh: line 19: numfmt: command not found
Failed conversion of ``8 Jun 18:15 -'' using format ``%a %b %d %H:%M''
date: illegal time format
usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
            [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
            [[[[mm]dd]HH]MM[[cc]yy][.SS] | new_date] [+output_fmt]

Are you using GNU coreutils?

@arturovilla
Copy link
Author

Yeah , is that a deal breaker ? Maybe I should edit the readme to reflect that . not sure when I downloaded that but I guess it could have been included with homebrew?
Screenshot 2024-06-10 at 1 17 44 PM

./machine_report.sh: line 19: numfmt: command not found
Failed conversion of ``8 Jun 18:15 -'' using format ``%a %b %d %H:%M''
date: illegal time format
usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
            [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
            [[[[mm]dd]HH]MM[[cc]yy][.SS] | new_date] [+output_fmt]

Are you using GNU coreutils?

@x-t
Copy link

x-t commented Jun 10, 2024

Yeah , is that a deal breaker ? Maybe I should edit the readme to reflect that . not sure when I downloaded that but I guess it could have been included with homebrew? Screenshot 2024-06-10 at 1 17 44 PM

./machine_report.sh: line 19: numfmt: command not found
Failed conversion of ``8 Jun 18:15 -'' using format ``%a %b %d %H:%M''
date: illegal time format
usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
            [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
            [[[[mm]dd]HH]MM[[cc]yy][.SS] | new_date] [+output_fmt]

Are you using GNU coreutils?

Yeah, it does not work without GNU coreutils. numfmt(1) is not included in macOS, nor FreeBSD. Also the date(1) format for non-GNU coreutils differs. I also have homebrew installed, but I don't have GNU coreutils, you must've installed them by yourself. I attempted to fix both things, but I found out that percentages above 100% pretty much break the rendering of bars anyway, and I don't feel like fixing any of that.

@arturovilla
Copy link
Author

Dang sorry about that I tried to see the my Homebrew deps but it seems like I installed coreutils standalone , I attached the output as a txt maybe someone can let me know where I got these utils...
output.txt
@x-t

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

Successfully merging this pull request may close these issues.

2 participants