Comments (8)
@saviourcode yes you are right, I found this issue few hours ago and am fixing this along the new refactor of code in a dev branch which will go public soon. This will be fixed there. Kudos for @S-Maciejewski to realise this and @saviourcode effectively figuring a solution!
from termiboard.
@S-Maciejewski Thanks for making us aware of our silly mistake. If you can provide a better way to List those Top5 Processes with Memory Usage without elevated privileges, please raise a PR for it. We will highly appreciate it.
from termiboard.
Hey @S-Maciejewski , It was raised previously at #30. It is because you need to give it administrative permissions in Windows to get it running.
from termiboard.
You even might consider inspecting code in memory.go file line number 67 to 73
from termiboard.
@saviourcode Unfortunately I still cannot make it work, even with elevated privileges. Shouldn't the condition in lines 69 to 73 eliminate the need for running this as admin btw?
Anyways, the error seems to occur in processes sorting. I wonder if there are any other processes running on my machine that should be excluded from the list. I will investigate this issue further, because for now it makes the whole program just crash on Windows
from termiboard.
@S-Maciejewski The Error is because somehow, the sort.Slice
block got included twice in the source code, remove the lines from 53 through 65 and then do go build
and runas admin. It will work.
from termiboard.
@S-Maciejewski Can you please raise the PR after doing those changes, thanks in advance 👍
from termiboard.
For brevity, I used the --top5-ram
flag
but here's how it will produce ouptut. I am using Windows Terminal with Admin Access.
from termiboard.
Related Issues (20)
- [Feature] Disk Usage Stats HOT 2
- [BUG] Ram Available actually showing used RAM
- [Feature] Improve readability of Ram Available and Disk Available output HOT 4
- [Feature] Add Makefile HOT 5
- [Feature] Adding Network Interface Name along with the Local IPv4 Addresses HOT 3
- [Feature] Show top 5 process that consume the most memory at time of execution HOT 2
- [Feature] Updating README.md with the new section for flag options HOT 4
- [Feature] Show taken ports HOT 1
- [Feature] ls* family functions for peripherals HOT 17
- [Feature] Display local IP address HOT 2
- [BUG] Process with PID: 0 access denied as it is system idle process in Windows HOT 2
- [Feature] Moving all Flag Options to it's own new file HOT 1
- [Feature] Better styling for "Top 5 processes by memory usage" HOT 3
- [Feature] Flags to hide header and version HOT 2
- [Documentation] Update README to have a "Usage" section HOT 3
- [Feature] To check if common ports are free. HOT 2
- [Feature] To obtain the public IP address of the computer. HOT 2
- [Feature] Show CPU Usage HOT 4
- [Feature] Show cpu temperature HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termiboard.