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
Multiload network scale #301
Conversation
hmm, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seemed to work fine here, but I don't have a landline so really high data rates are not available. Also could only load it for a short time due to bandwidth issues.
The scalling works now and i see several grid lines with my bandwidth. |
301c552
to
fdac1f7
Compare
Really nice idea with the retangle. |
fdac1f7
to
16715af
Compare
2a41965
to
95259dc
Compare
95259dc
to
0156da0
Compare
...just final testing. |
Very nice the options with the thresholds. I think some tooltip infos about the function of thresholds would be helpful. |
I think I will rather update Help screen any objections? |
Only a some help about the different thresholds. |
multiload/main.c
Outdated
{ _("Swap Load"), "swapload", 2, GetSwap }, | ||
{ _("Load Average"), "loadavg", 3, GetLoadAvg }, | ||
{ _("Disk Load"), "diskload", 3, GetDiskLoad } | ||
}; | ||
|
||
gint speed, size; | ||
guint net_granularity; | ||
guint net_threshold1; | ||
guint net_threshold2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, indent...
multiload/global.h
Outdated
@@ -58,20 +59,20 @@ struct _LoadGraph { | |||
struct _MultiloadApplet | |||
{ | |||
MatePanelApplet *applet; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed these cleanups as a separate commit
@@ -49,47 +49,48 @@ static const unsigned needed_netload_flags = | |||
void | |||
GetLoad (int Maximum, int data [5], LoadGraph *g) | |||
{ | |||
int usr, nice, sys, iowait, free; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use 2 spaces instead of 4 everywhere...?
@@ -73,17 +73,10 @@ help_cb (GtkAction *action, | |||
|
|||
GError *error = NULL; | |||
|
|||
#if GTK_CHECK_VERSION (3, 22, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency it would be better to remove only the check blocks that were introduced earlier in this PR.
I'll add the PR which does it for the whole project later.
multiload/load-graph.c
Outdated
} | ||
|
||
if (g->show_frame) | ||
{ | ||
g->frame = gtk_frame_new (NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected some of these tab/space mix cases in master - you'll probably need to rebase
58529f5
to
ffb287f
Compare
oh, now this branch have conflict :/ |
7f1413c
to
bc19b58
Compare
@monsta |
bc19b58
to
c9d0a22
Compare
Closed as agreed with raveit65, due to conflicts. New clean PR will be opened |
When network load gets over 100,000 bytes/s grid line is added and graph scales so that top of graph means 200,000 now. When 200,000 is reached, new line is added and 300,000 is top etc. Like loadavg graph.
Number 100,000 is configurable via schema file. To make it changable via gconf editor, it would need to change from relocatable schema, I will look at it as next stage.
Second commit only reformats the craziest cases of formatting, some parts of code were very hard to read due to bad indentation. I kept is as two commits so that code changes in first commit are easier to review.