Devlog #6
My disk is very full!
Today, I thought to myself, “why haven’t I added a root disk stat yet, that shows usage and all that good stuff”
Well, here I am answering my thoughts. I’m not crazy… maybe. Basically for the backend I made a DiskStats struct that holds important variables , like used percentage, available bytes, used bytes etc. I then hooked that up to my filesystem cpp implementation, and tested it. Worked on the first try! Nice job C++! However, I noticed that not everyone would like to read thousands of numbers and convert them into megabytes, gigabytes etc. So I made a simple formatter util that does the job for you.
Next was the ui. I made a disk click handler (that currently doesn’t work) that show the disk stats, and has a progress bar that turns red if disk usage is over 90% (signalling critical usage limit). Then, I just piped that into my main view vbox.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.