mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
Probably fixed wireless spacer
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@903 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
b8b4694fca
commit
772619e99a
@ -3555,19 +3555,19 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object *
|
||||
if (!use_spacer)
|
||||
snprintf(p, p_max_size, "%d", obj->data.net->link_qual);
|
||||
else
|
||||
snprintf(p, 3, "%d ", obj->data.net->link_qual);
|
||||
snprintf(p, 4, "%d ", obj->data.net->link_qual);
|
||||
}
|
||||
OBJ(wireless_link_qual_max) {
|
||||
if (!use_spacer)
|
||||
snprintf(p, p_max_size, "%d", obj->data.net->link_qual_max);
|
||||
else
|
||||
snprintf(p, 3, "%d ", obj->data.net->link_qual_max);
|
||||
snprintf(p, 4, "%d ", obj->data.net->link_qual_max);
|
||||
}
|
||||
OBJ(wireless_link_qual_perc) {
|
||||
if (!use_spacer)
|
||||
snprintf(p, p_max_size, "%.0f%%", (double)obj->data.net->link_qual / obj->data.net->link_qual_max * 100);
|
||||
else
|
||||
snprintf(p, 4, "%.0f%% ", (double)obj->data.net->link_qual / obj->data.net->link_qual_max * 100);
|
||||
snprintf(p, 5, "%.0f%% ", (double)obj->data.net->link_qual / obj->data.net->link_qual_max * 100);
|
||||
}
|
||||
OBJ(wireless_link_bar) {
|
||||
new_bar(p, obj->a, obj->b, ((double)obj->data.net->link_qual/obj->data.net->link_qual_max)*255.0);
|
||||
|
Loading…
Reference in New Issue
Block a user