1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

drop struct text_object field f

This commit is contained in:
Phil Sutter 2009-10-25 22:47:53 +01:00
parent f98a360089
commit 76b433c809
2 changed files with 9 additions and 9 deletions

View File

@ -45,6 +45,7 @@ struct execi_data {
char *buffer;
double data;
timed_thread *p_timed_thread;
float barnum;
};
/* FIXME: this will probably not work, since the variable is being reused
@ -398,11 +399,11 @@ void print_execigraph(struct text_object *obj, char *p, int p_max_size)
barnum = get_barnum(p);
if (barnum >= 0.0) {
obj->f = barnum;
ed->barnum = barnum;
}
ed->last_update = current_update_time;
}
new_graph(obj, p, (int) (obj->f));
new_graph(obj, p, (int) (ed->barnum));
}
void print_execigauge(struct text_object *obj, char *p, int p_max_size)
@ -419,11 +420,11 @@ void print_execigauge(struct text_object *obj, char *p, int p_max_size)
barnum = get_barnum(p);
if (barnum >= 0.0) {
obj->f = 255 * barnum / 100.0;
ed->barnum = 255 * barnum / 100.0;
}
ed->last_update = current_update_time;
}
new_gauge(obj, p, round_to_int(obj->f));
new_gauge(obj, p, round_to_int(ed->barnum));
}
#endif /* X11 */
@ -457,16 +458,16 @@ void print_execibar(struct text_object *obj, char *p, int p_max_size)
barnum = get_barnum(p);
if (barnum >= 0.0) {
obj->f = barnum;
ed->barnum = barnum;
}
ed->last_update = current_update_time;
}
#ifdef X11
if(output_methods & TO_X) {
new_bar(obj, p, round_to_int(obj->f * 2.55));
new_bar(obj, p, round_to_int(ed->barnum * 2.55));
} else
#endif /* X11 */
new_bar_in_shell(obj, p, p_max_size, round_to_int(obj->f));
new_bar_in_shell(obj, p, p_max_size, round_to_int(ed->barnum));
}
void free_exec(struct text_object *obj)

View File

@ -434,7 +434,7 @@ struct text_object {
void *opaque; /* new style generic per object data */
char *s; /* some string */
int i; /* some integer */
long l; /* some other integer */
long l; /* some long integer */
struct {
void *opaque; /* temporary workaround to not blow stuff */
@ -455,7 +455,6 @@ struct text_object {
int a, b;
long line;
unsigned int c, d, e;
float f;
char char_a, char_b;
};