From 8e8b1ea8b79485088bbe999700886422ed912fdd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 27 Apr 2011 18:36:33 +0000 Subject: use correct expiration values --- src/fs/gnunet-pseudonym.c | 3 ++- src/fs/gnunet-publish.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fs/gnunet-pseudonym.c b/src/fs/gnunet-pseudonym.c index 68a760867..d7a13e486 100644 --- a/src/fs/gnunet-pseudonym.c +++ b/src/fs/gnunet-pseudonym.c @@ -53,7 +53,7 @@ static struct GNUNET_CONTAINER_MetaData *adv_metadata; /** * Our block options (-p, -r, -a). */ -static struct GNUNET_FS_BlockOptions bo = { { 2 * 365 * 24 * 60 * 60 * 1000LL }, 1, 365, 1 }; +static struct GNUNET_FS_BlockOptions bo = { { 0LL }, 1, 365, 1 }; /** * -q option given. @@ -352,6 +352,7 @@ main (int argc, char *const *argv) 1, &GNUNET_GETOPT_set_string, &rating_change}, GNUNET_GETOPT_OPTION_END }; + bo.expiration_time = GNUNET_FS_year_to_time (GNUNET_FS_get_current_year () + 2); return (GNUNET_OK == GNUNET_PROGRAM_run (argc, argv, diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index 1fbdb9e07..57ddde32a 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c @@ -44,7 +44,7 @@ static struct GNUNET_FS_Uri *topKeywords; static struct GNUNET_FS_Uri *uri; -static struct GNUNET_FS_BlockOptions bo = { { 2 * 365 * 24 * 60 * 60 * 1000LL }, 1, 365, 1 }; +static struct GNUNET_FS_BlockOptions bo = { { 0LL }, 1, 365, 1 }; static char *uri_string; @@ -685,6 +685,7 @@ main (int argc, char *const *argv) 0, &GNUNET_GETOPT_set_one, &verbose}, GNUNET_GETOPT_OPTION_END }; + bo.expiration_time = GNUNET_FS_year_to_time (GNUNET_FS_get_current_year () + 2); return (GNUNET_OK == GNUNET_PROGRAM_run (argc, argv, -- cgit v1.2.3