1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 13:39: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:
Brenden Matthews 2005-07-30 23:05:03 +00:00
parent 36d77be10c
commit 01d850c2b4

View File

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