Skip to content

Commit

Permalink
Use relative expiry times for memcached key expiry.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuchbinder committed Jan 23, 2013
1 parent 15b875c commit 20ac458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmetad/rrd_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 20ac458

Please sign in to comment.