diff options
Diffstat (limited to 'src/plugins/fs/namespace.c')
-rw-r--r-- | src/plugins/fs/namespace.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c index 8282ce13..468d9a86 100644 --- a/src/plugins/fs/namespace.c +++ b/src/plugins/fs/namespace.c | |||
@@ -251,8 +251,8 @@ static int addNamespaceContentToModel(void * cls, | |||
251 | const ECRS_FileInfo * fi, | 251 | const ECRS_FileInfo * fi, |
252 | const HashCode512 * lastId, | 252 | const HashCode512 * lastId, |
253 | const HashCode512 * nextId, | 253 | const HashCode512 * nextId, |
254 | cron_t publicationFrequency, | 254 | TIME_T publicationFrequency, |
255 | cron_t nextPublicationTime) { | 255 | TIME_T nextPublicationTime) { |
256 | GtkListStore * model = GTK_LIST_STORE(cls); | 256 | GtkListStore * model = GTK_LIST_STORE(cls); |
257 | GtkTreeIter iter; | 257 | GtkTreeIter iter; |
258 | char * filename; | 258 | char * filename; |
@@ -298,9 +298,9 @@ static int addNamespaceContentToModel(void * cls, | |||
298 | uriString = ECRS_uriToString(fi->uri); | 298 | uriString = ECRS_uriToString(fi->uri); |
299 | hash2enc(lastId, &last); | 299 | hash2enc(lastId, &last); |
300 | hash2enc(nextId, &next); | 300 | hash2enc(nextId, &next); |
301 | t = nextPublicationTime / cronSECONDS; | 301 | t = nextPublicationTime; |
302 | date = GN_CTIME(&t); | 302 | date = GN_CTIME(&t); |
303 | freq = timeIntervalToFancyString(publicationFrequency); | 303 | freq = timeIntervalToFancyString(publicationFrequency * cronSECONDS); |
304 | gtk_list_store_append(model, | 304 | gtk_list_store_append(model, |
305 | &iter); | 305 | &iter); |
306 | gtk_list_store_set(model, | 306 | gtk_list_store_set(model, |
@@ -554,7 +554,7 @@ void namespaceDelete_clicked(GtkWidget * dummy1, | |||
554 | typedef struct { | 554 | typedef struct { |
555 | unsigned int anonymityLevel; | 555 | unsigned int anonymityLevel; |
556 | char * namespaceName; | 556 | char * namespaceName; |
557 | cron_t updateInterval; | 557 | TIME_T updateInterval; |
558 | HashCode512 * lastId; | 558 | HashCode512 * lastId; |
559 | HashCode512 thisId; | 559 | HashCode512 thisId; |
560 | HashCode512 * nextId; | 560 | HashCode512 * nextId; |
@@ -619,8 +619,7 @@ static void initiateUpload(GtkTreeModel * model, | |||
619 | &cls->thisId, | 619 | &cls->thisId, |
620 | cls->nextId, | 620 | cls->nextId, |
621 | cls->updateInterval, | 621 | cls->updateInterval, |
622 | cls->updateInterval | 622 | cls->updateInterval + TIME(NULL)); |
623 | + cronTime(NULL) ); | ||
624 | } | 623 | } |
625 | ECRS_freeUri(resultURI); | 624 | ECRS_freeUri(resultURI); |
626 | } else { | 625 | } else { |