mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
all good now
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@34 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
36d77be10c
commit
01d850c2b4
6
conky.c
6
conky.c
@ -315,11 +315,11 @@ inline void graph_append(struct special_t *graph, double f)
|
||||
if (graph->scaled) {
|
||||
graph->graph_scale = 0;
|
||||
}
|
||||
graph->graph[graph->graph_width - 1] = f;
|
||||
for (i = 0; i < graph->graph_width - 1; i++) {
|
||||
graph->graph[graph->graph_width - 1] = f; /* add new data */
|
||||
for (i = 0; i < graph->graph_width - 1; i++) { /* shift all the data by 1 */
|
||||
graph->graph[i] = graph->graph[i + 1];
|
||||
if (graph->scaled && graph->graph[i] > graph->graph_scale) {
|
||||
graph->graph_scale = graph->graph[i];
|
||||
graph->graph_scale = graph->graph[i]; /* check if we need to update the scale */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user