stangowner said:
Here's how you can change the decimals displayed for any GB readings so they show 1 decimal place:
- open "C:\Users\<username>\AppData\Local\Microsoft\Windows Sidebar\Gadgets\HWiNFOMonitor.gadget\scripts\shared.js" in a text editor.
- change line 182 from:
}else if(units == "fps" || units == "x" || units == "w"){
to:
}else if(units == "fps" || units == "x" || units == "w" || units == "gb"){
- save and close the file
- close and reopen your gadget
Now you will be able to see 12.1 GB or 12.9 GB when using the modify factor of 1024. However, this will change all entries displaying as GB, so just make sure any others still display OK.
- Nick
To expand on this, is there a way to expand the number of decimals to at least 2?
I actually meant to ask this awhile ago, but for some reason even with:
1) Editing line 182 in shared.js
2) Actual / Factor = 1024 _ GB [For specific entry in gadget]
3) Exiting the actual gadget and replacing it as it once was
It would never work and just randomly decided to now on my umpteenth try.
Also, backing up perfMonitors_#.json/perfWindow_#.json and restoring them when the gadget decides to reset itself doesn't seem to work anymore. By work, I mean restoring it to how you edited it (either by shadow copy or manually copying the file and placing elsewhere in case of need). Are there any alternatives to restoring previous entries properly when they are reset on a random system boot?