summaryrefslogtreecommitdiffstats
path: root/Meter.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-02-04 11:42:54 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-02-04 11:42:54 -0200
commit574c3decb5213073c41107b89959746f5864b7c1 (patch)
tree1d7f7896fba0375e4f9b53c789b0472bbd6f5e65 /Meter.c
parent4a26ac05b09286af595035ff76004782298dd531 (diff)
Move graph according to configured CRT_delay.
Diffstat (limited to 'Meter.c')
-rw-r--r--Meter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meter.c b/Meter.c
index 09d0aeba..1c32ad74 100644
--- a/Meter.c
+++ b/Meter.c
@@ -345,7 +345,7 @@ static void GraphMeterMode_draw(Meter* this, int x, int y, int w) {
struct timeval now;
gettimeofday(&now, NULL);
if (!timercmp(&now, &(data->time), <)) {
- struct timeval delay = { .tv_sec = (int)(GRAPH_DELAY/10), .tv_usec = (GRAPH_DELAY-((int)(GRAPH_DELAY/10)*10)) * 100000 };
+ struct timeval delay = { .tv_sec = (int)(CRT_delay/10), .tv_usec = (CRT_delay-((int)(CRT_delay/10)*10)) * 100000 };
timeradd(&now, &delay, &(data->time));
for (int i = 0; i < nValues - 1; i++)

© 2014-2024 Faster IT GmbH | imprint | privacy policy