diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-20 05:36:59 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-20 05:36:59 +0000 |
commit | 024cf9ff9a01665704542dc7dab017710e22c8b5 (patch) | |
tree | 425249827b2d9af46849c54f75a446f55369bf38 /hash.c | |
parent | c374e8db5cd7580b00c3211e8f651a6db6d0c5d4 (diff) | |
download | lcd4linux-024cf9ff9a01665704542dc7dab017710e22c8b5.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
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@322 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'hash.c')
-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 |