Code Monkey home page Code Monkey logo

Comments (8)

DarthBenro008 avatar DarthBenro008 commented on July 30, 2024 1

@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.

sjchoure avatar sjchoure commented on July 30, 2024 1

@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.

sjchoure avatar sjchoure commented on July 30, 2024

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.

sjchoure avatar sjchoure commented on July 30, 2024

You even might consider inspecting code in memory.go file line number 67 to 73

from termiboard.

S-Maciejewski avatar S-Maciejewski commented on July 30, 2024

@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.

sjchoure avatar sjchoure commented on July 30, 2024

@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.

sjchoure avatar sjchoure commented on July 30, 2024

@S-Maciejewski Can you please raise the PR after doing those changes, thanks in advance 👍

from termiboard.

sjchoure avatar sjchoure commented on July 30, 2024

For brevity, I used the --top5-ram flag
but here's how it will produce ouptut. I am using Windows Terminal with Admin Access.
Solu

from termiboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.