summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-27 18:36:33 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-27 18:36:33 +0000
commit8e8b1ea8b79485088bbe999700886422ed912fdd (patch)
tree7acc9633eb94a7eee043d8a6fcf89dd3f0e6d758 /src/fs
parent626fa6e87a4c6bfdb03a9bba0bce81a393ca92ce (diff)
use correct expiration values
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/gnunet-pseudonym.c3
-rw-r--r--src/fs/gnunet-publish.c3
2 files changed, 4 insertions, 2 deletions
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,