My gauge looks inaccurate. Can someone look at code please?

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
Logansfury
Level 8
Level 8
Posts: 2432
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

My gauge looks inaccurate. Can someone look at code please?

Post by Logansfury »

Image

Hello everyone,

In the pic above is the data drive space gauge I just put together. It is a 500G HDD so I set the max rpm to 500:

Code: Select all

{
    name='fs_used_perc',    arg='/media/logansfury/8297c0d4-83f1-4d9e-adff-3e79751f6b9d',
    max_value=95,                 max_rpm=500,
    x=268,                          y=450,
    graph_radius=35,
    graph_thickness=8,
    graph_start_angle=225,
    graph_unit_angle=2.84,         graph_unit_thickness=2.7,
    graph_bg_colour=0xFFEEEE,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=1.0,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=0,
    txt_weight=1,                  txt_size=23.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=0.0,
    graduation_radius=0,
    graduation_thickness=28,       graduation_mark_thickness=29,
    graduation_unit_angle=72,
    graduation_fg_colour=0xAAAAAA, graduation_fg_alpha=0.2,
    caption='DATA',
    caption_weight=1,              caption_size=14,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=100,
    },
I have 68% of the drive full if I understand the fs_used_perc correctly, yet the white progress bar is only about 1/5th activated and it should be covering over half the gauge to represent 68%.

What have I done wrong please?

Thanks for reading,

Logan
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 8
Level 8
Posts: 2088
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: My gauge looks inaccurate. Can someone look at code please?

Post by Koentje »

Seems ok, as far as i can see.. I do the same.
Schermafdruk van 2024-06-18 10-08-09.jpg
Schermafdruk van 2024-06-18 10-08-09.jpg (8.41 KiB) Viewed 277 times
Image
User avatar
Koentje
Level 8
Level 8
Posts: 2088
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: My gauge looks inaccurate. Can someone look at code please?

Post by Koentje »

Ah i see what's wrong... max_rpm='100' will do it!
You measure in percents nog GB's, and max percent is always 100%! So it needs to bee 100.
Image
User avatar
Logansfury
Level 8
Level 8
Posts: 2432
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: My gauge looks inaccurate. Can someone look at code please?

Post by Logansfury »

Koentje wrote: Tue Jun 18, 2024 4:13 am Ah i see what's wrong... max_rpm='100' will do it!
You measure in percents nog GB's, and max percent is always 100%! So it needs to bee 100.
Ah I see, I did a foolish edit. I'm picking up a steak sandwich to bring home. I'll get the corrective edit done shoftly
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 8
Level 8
Posts: 2088
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: My gauge looks inaccurate. Can someone look at code please?

Post by Koentje »

I could do it for you if i knew which file to edit in that pile of folders and files! :lol:

EDIT: Found it, fixed it! ;)
Image
User avatar
Logansfury
Level 8
Level 8
Posts: 2432
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: My gauge looks inaccurate. Can someone look at code please?

Post by Logansfury »

Far out thank you :)

Oh yeah Data drive guage is clearly showing close to 79% usage now!
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
Post Reply

Return to “Compiz, Conky, Docks & Widgets”