Comments (3)
@pronei any progress with this? If you're having an issue putting multiple gauges into the grid a fair approach would be to Initialise the gauges outside the grid. You can then have any number of gauges you want initialised and update them accordingly too.
from grofer.
Seems good but there's a lot of flickering now. Not sure why though.
This was what I had initially tried within the initialization for the Grid layout but didn't work:
var coreRows []interface{}
coreRows := make([]interface{}, numCores)
for i := 0; i < numCores; ++i {
coreRows[i] = ui.NewRow(float64(1.0 / numCores), page.CPUCharts[i])
}
page.Grid.Set(
ui.NewCol(0.54,
coreRows...,
),
ui.NewCol(0.46,
ui.NewRow(0.34, page.MemoryChart),
ui.NewRow(0.34,
ui.NewCol(0.25, page.NetPara),
ui.NewCol(0.75, page.NetworkChart),
),
ui.NewRow(0.34, page.DiskChart),
),
)
I'm pretty new to Go and am quite unfamiliar with how memory allocation works for objects that implement a certain interface.
from grofer.
@pronei The flickering might be because of the high refresh rates. Maybe try increasing it on a local build?
from grofer.
Related Issues (20)
- [FEATURE REQ] Add keybind to navigate to child process in grofer proc HOT 3
- [FEATURE REQ] Add Dockerfile for `grofer` HOT 4
- [BUG] Incorrect timestamps
- [FEATURE REQ] Add keybindings for sorting output for `grofer proc` HOT 2
- [FEATURE REQ] add key bindings for `kill`ing and `restart`ing docker containers from `grofer` HOT 4
- [BUG] grofer fails in tmux HOT 4
- [FEATURE REQ] Add version number to about page HOT 31
- [BUG] Incorrect unit in `RoundValues()` HOT 2
- [BUG] Selectoed process out of bounds in `grofer proc`
- [Enhancement] Improve the way container actions are handled
- [FEATURE REQ] A screen that can track battery usage HOT 6
- [FEATURE REQ] Kubernetes Monitoring and Dashboard HOT 8
- [FEATURE REQ] Add an action table for the overall container page
- [FEATURE REQ] provide support for different signal types HOT 5
- [BUG] incorrect pid validation in `proc` command HOT 6
- [FEATURE REQ] add monitoring of system resources given docker container id
- [Enhancement] add cleaner and more efficient error handling HOT 1
- -c flag throws error HOT 3
- [FEATURE REQ] add the `s`(pause) key-binding to help menus HOT 2
- [DOC] document using `grofer export` format HOT 1
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 grofer.