-
Notifications
You must be signed in to change notification settings - Fork 82
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
get_percent_bar $percentage
: Cannot validate argument on parameter 'percent'
#181
Comments
Can you try isolating which segment is causing the error? I think it's CPU usage, but please confirm. |
how do i do that, exactly? i'll have to reboot the pc for each attempt so i have to be sure to make the correct edits... |
You can edit the config file located at ~/.config/winfetch/config.ps1 And you don't need to reboot every time - you can just run the script directly after editing the config file. |
Hi, i've not been able to reproduce the issue again, i sincerely don't know what caused it, sorry |
@rashil2000 it happened again but i have no idea why, i cannot reproduce it regularly😞 ... it's always after the GPU line and when running in a small window, though:
what can i do to debug? |
Make a backup of this file somewhere. Then edit it to include just the following text: @(
cpu_usage
) and now try to repro the issue |
Hi, i think you meant
So, no error.... it doesn't always pop up anyways, only a few times, sporadically |
@Carterpersall any idea why the total comes up more than 100 here sometimes? |
Sorry about the delay, I don’t have a lot of time in the summer to code.
As for a solution, I can see two possible avenues for now:
|
Here’s what I’ve found after looking into how
It's possible that the source of the bug is that we are using each process's start time on a CPU time that is measured per-thread, which have their own individual start times. I threw together an implementation of |
Well if 2.5x means a few milliseconds more, i'd say that's acceptable? i did measure what the current function took to complete and it was less than 15ms, so 2.5x would still be negligible IMHO |
Hi,
i'm having the error mentioned when invoking winfetch the first time after each boot. Afterwards, it works just fine.
I have created a small function to invoke winfetch with my preferred parameters:
Then i simply call
Show-Winfetch
in one of my startup scripts.It prints this:
The output is truncated like that because i am running the script inside a Windows Terminal split pane (
$Host.UI.RawUI.WindowSize.Width
= 58,$Host.UI.RawUI.WindowSize.Height
= 30)thank you for your time
The text was updated successfully, but these errors were encountered: