Permalink
Browse files

Use relative expiry times for memcached key expiry.

  • Loading branch information...
1 parent 15b875c commit 20ac45892062f9552c223e7c65bdc0764d180cdc @jbuchbinder jbuchbinder committed Jan 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gmetad/rrd_helpers.c
View
@@ -333,7 +333,7 @@ write_data_to_memcached ( const char *cluster, const char *host, const char *met
sprintf(s_path, "%s/%s/%s", cluster, host, metric);
if (expiry != 0) {
- expiry_time = time(NULL) + expiry;
+ expiry_time = expiry;
} else {
expiry_time = (time_t) 0;
}

0 comments on commit 20ac458

Please sign in to comment.