diff options
author | reinelt <> | 2004-01-20 05:36:59 +0000 |
---|---|---|
committer | reinelt <> | 2004-01-20 05:36:59 +0000 |
commit | 35b4d898d72f13de0b787ccd94970f517cd623f3 (patch) | |
tree | 425249827b2d9af46849c54f75a446f55369bf38 /hash.c | |
parent | 252cb9023289ad2af5993cf53c0d0fd7293cff27 (diff) | |
download | lcd4linux-35b4d898d72f13de0b787ccd94970f517cd623f3.tar.gz |
[lcd4linux @ 2004-01-20 05:36:59 by reinelt]
moved text-display-specific stuff to drv_generic_text
moved all the bar stuff from drv_generic_bar to generic_text
Diffstat (limited to '')
-rw-r--r-- | hash.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: hash.c,v 1.5 2004/01/18 09:01:45 reinelt Exp $ +/* $Id: hash.c,v 1.6 2004/01/20 05:36:59 reinelt Exp $ * * hashes (associative arrays) * @@ -23,6 +23,10 @@ * * * $Log: hash.c,v $ + * Revision 1.6 2004/01/20 05:36:59 reinelt + * moved text-display-specific stuff to drv_generic_text + * moved all the bar stuff from drv_generic_bar to generic_text + * * Revision 1.5 2004/01/18 09:01:45 reinelt * /proc/stat parsing finished * @@ -221,6 +225,7 @@ double hash_get_filter (HASH *Hash, char *key, int delay) for (i=1; i<FILTER_SLOTS; i++) { if (Item->Slot[i].time.tv_sec==0) break; if (timercmp(&Item->Slot[i].time, &end, <)) break; + dt = (now.tv_sec - Item->Slot[i].time.tv_sec) + (now.tv_usec - Item->Slot[i].time.tv_usec)/1000000.0; } // empty slot => use the one before |