Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swarm stats --min-used-limit-perc doesn't work for "all" scope #9473

Closed
Tracked by #9442
BigLep opened this issue Dec 7, 2022 · 0 comments · Fixed by #9476
Closed
Tracked by #9442

swarm stats --min-used-limit-perc doesn't work for "all" scope #9473

BigLep opened this issue Dec 7, 2022 · 0 comments · Fixed by #9476
Assignees
Labels
kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization

Comments

@BigLep
Copy link
Contributor

BigLep commented Dec 7, 2022

Version

ipfs version --all
Kubo version: 0.14.0-e0fabd6db
Repo version: 12
System version: arm64/darwin
Golang version: go1.18.5

Description

Usecase: across "all" scopes, I want to see where I'm exceeding a percentage of a limit.

If I use a non "all" scope I see output.

ipfs swarm stats --min-used-limit-perc=10 system
{
  "System": {
    "Conns": 262,
    "ConnsInbound": 35,
    "ConnsOutbound": 227,
    "FD": 74,
    "Memory": 18087968,
    "Streams": 243,
    "StreamsInbound": 33,
    "StreamsOutbound": 210
  }
}

If I use the "all" scope, I don't:

ipfs swarm stats --min-used-limit-perc=10 all   
{}

ipfs swarm stats all gives the expected output when I don't specify -min-used-limit-perc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants