mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
Added spacer for wireless variables. Fixed some tabs. Disabled old wireless code.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@900 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
ff3d0b015e
commit
6b553ec7de
@ -3552,13 +3552,22 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object *
|
|||||||
snprintf(p, p_max_size, "%s", obj->data.net->ap);
|
snprintf(p, p_max_size, "%s", obj->data.net->ap);
|
||||||
}
|
}
|
||||||
OBJ(wireless_link_qual) {
|
OBJ(wireless_link_qual) {
|
||||||
|
if (!use_spacer)
|
||||||
snprintf(p, p_max_size, "%d", obj->data.net->link_qual);
|
snprintf(p, p_max_size, "%d", obj->data.net->link_qual);
|
||||||
|
else
|
||||||
|
snprintf(p, 3, "%d ", obj->data.net->link_qual);
|
||||||
}
|
}
|
||||||
OBJ(wireless_link_qual_max) {
|
OBJ(wireless_link_qual_max) {
|
||||||
|
if (!use_spacer)
|
||||||
snprintf(p, p_max_size, "%d", obj->data.net->link_qual_max);
|
snprintf(p, p_max_size, "%d", obj->data.net->link_qual_max);
|
||||||
|
else
|
||||||
|
snprintf(p, 3, "%d ", obj->data.net->link_qual_max);
|
||||||
}
|
}
|
||||||
OBJ(wireless_link_qual_perc) {
|
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);
|
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);
|
||||||
}
|
}
|
||||||
OBJ(wireless_link_bar) {
|
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);
|
new_bar(p, obj->a, obj->b, ((double)obj->data.net->link_qual/obj->data.net->link_qual_max)*255.0);
|
||||||
|
@ -333,6 +333,8 @@ inline void update_net_stats()
|
|||||||
info.mask |= (1 << INFO_NET);
|
info.mask |= (1 << INFO_NET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* deprecated */
|
||||||
inline void update_wifi_stats()
|
inline void update_wifi_stats()
|
||||||
{
|
{
|
||||||
/** wireless stats patch by Bobby Beckmann **/
|
/** wireless stats patch by Bobby Beckmann **/
|
||||||
@ -380,6 +382,7 @@ inline void update_wifi_stats()
|
|||||||
|
|
||||||
/*** end wireless patch ***/
|
/*** end wireless patch ***/
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user