diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-23 03:08:21 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-23 03:08:21 -0200 |
commit | c2108e5a482dfb8760849bb01264ed4bdb9f604f (patch) | |
tree | 29bd336760c5ca9cbebed5e4a1e007642064cbc4 /Meter.c | |
parent | 3383d8e5561dfc6fb2b65e0a194df94ccb5e08af (diff) |
Another mega-patch for the refactoring process.
Kinda runs, but functionality from the original main loop
is still missing. Patience.
Diffstat (limited to 'Meter.c')
-rw-r--r-- | Meter.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -23,6 +23,8 @@ in the source distribution for its full text. #define METER_BUFFER_LEN 256 +#define GRAPH_DELAY (DEFAULT_DELAY/2) + /*{ #include "ListItem.h" @@ -342,7 +344,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)(DEFAULT_DELAY/10), .tv_usec = (DEFAULT_DELAY-((int)(DEFAULT_DELAY/10)*10)) * 100000 }; + struct timeval delay = { .tv_sec = (int)(GRAPH_DELAY/10), .tv_usec = (GRAPH_DELAY-((int)(GRAPH_DELAY/10)*10)) * 100000 }; timeradd(&now, &delay, &(data->time)); for (int i = 0; i < nValues - 1; i++) |