diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-10-19 18:39:11 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-10-19 18:39:11 +0200 |
commit | 27654ceb2f71750c5b007e3b7afe601a6d372e30 (patch) | |
tree | 6f247606c513af04b2930aab30f0437293791b54 | |
parent | 1ea064c9b0baaee91086c34a1e94b651b3831c4c (diff) | |
download | flatpak-27654ceb2f71750c5b007e3b7afe601a6d372e30.tar.gz |
FlatpakDir: Fix timeout of summary cache
There was a msec/usec mismatch in the code that made
the summary cache time out 1000 times to soon.
-rw-r--r-- | common/flatpak-dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index a77b09bf..a79bd8c4 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -4153,7 +4153,7 @@ flatpak_dir_lookup_cached_summary (FlatpakDir *self, if (summary) { guint64 now = g_get_monotonic_time (); - if ((now - summary->time) < (1000 * (SUMMARY_CACHE_TIMEOUT_SEC)) && + if ((now - summary->time) < (1000 * 1000 * (SUMMARY_CACHE_TIMEOUT_SEC)) && strcmp (url, summary->url) == 0) { g_debug ("Using cached summary for remote %s", name); |