From 98e372e85eafb22364a82853d3d3fcbad002ba62 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 16 Jul 2020 17:38:19 +0100 Subject: [PATCH] dir: Tidy up definition of cache timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding brackets makes it a little more obvious that it’s 5 minutes, and less likely that operator precedence where the macro is used will result in the wrong value being calculated. Signed-off-by: Philip Withnall --- common/flatpak-dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 2a1cb4f7..23fcd350 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -71,7 +71,7 @@ #define NO_SYSTEM_HELPER ((FlatpakSystemHelper *) (gpointer) 1) -#define SUMMARY_CACHE_TIMEOUT_SEC 5 *60 +#define SUMMARY_CACHE_TIMEOUT_SEC (60 * 5) #define FILTER_MTIME_CHECK_TIMEOUT_MSEC 500 #define SYSCONF_INSTALLATIONS_DIR "installations.d"