mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
convert loadgraphval to double
This commit is contained in:
parent
f74ae19944
commit
1382915d1e
@ -466,11 +466,11 @@ void scan_loadgraph_arg(struct text_object *obj, const char *arg)
|
||||
free(buf);
|
||||
}
|
||||
|
||||
uint8_t loadgraphval(struct text_object *obj)
|
||||
double loadgraphval(struct text_object *obj)
|
||||
{
|
||||
(void)obj;
|
||||
|
||||
return round_to_int(info.loadavg[0]);
|
||||
return info.loadavg[0];
|
||||
}
|
||||
#endif /* X11 */
|
||||
|
||||
|
@ -67,7 +67,7 @@ void scan_loadavg_arg(struct text_object *, const char *);
|
||||
void print_loadavg(struct text_object *, char *, int);
|
||||
#ifdef X11
|
||||
void scan_loadgraph_arg(struct text_object *, const char *);
|
||||
uint8_t loadgraphval(struct text_object *);
|
||||
double loadgraphval(struct text_object *);
|
||||
#endif /* X11 */
|
||||
|
||||
uint8_t cpu_percentage(struct text_object *);
|
||||
|
Loading…
Reference in New Issue
Block a user