mirror of https://github.com/xzeldon/htop.git
Move graph according to configured CRT_delay.
This commit is contained in:
parent
4a26ac05b0
commit
574c3decb5
2
Meter.c
2
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++)
|
||||
|
|
Loading…
Reference in New Issue