1
0
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:
Phil Sutter 2009-12-04 01:49:31 +01:00
parent f74ae19944
commit 1382915d1e
2 changed files with 3 additions and 3 deletions

View File

@ -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 */

View File

@ -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 *);