author | Sebastian Harl <sh@tokkee.org> | |
Tue, 3 Feb 2009 13:08:32 +0000 (14:08 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 5 Feb 2009 20:10:26 +0000 (21:10 +0100) | ||
commit | bc7992ed0693313a2b1fe282a5bf23f1cc9f8e42 | |
tree | ccf9761ab4496a124199be89b36849d812af8b3d | tree | snapshot |
parent | a28ebbb8265605a09f0555d1eb036f50b9a784c8 | commit | diff |
Let plugin_dispatch_values() set value_list.time in case of 'now'.
Basically any (read) plugin was calling time(NULL) to set the time of a values
list. This is now done by plugin_dispatch_values() in case the time is zero
(which is the case when using VALUE_LIST_INIT or VALUE_LIST_STATIC).
This change slightly simplifies the code and makes future changes to the time
management (like the possibly upcoming subsecond resolution support) less
intrusive in respect to the amount of required code changes.
Basically any (read) plugin was calling time(NULL) to set the time of a values
list. This is now done by plugin_dispatch_values() in case the time is zero
(which is the case when using VALUE_LIST_INIT or VALUE_LIST_STATIC).
This change slightly simplifies the code and makes future changes to the time
management (like the possibly upcoming subsecond resolution support) less
intrusive in respect to the amount of required code changes.
56 files changed: