[gnome-software] trivial: Make the updates refresh minimum age only 10 secs
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Make the updates refresh minimum age only 10 secs
- Date: Mon, 18 Sep 2017 10:54:38 +0000 (UTC)
commit 9ec20aaad825deab6d72df1120392e29c83331bd
Author: Joaquim Rocha <jrocha endlessm com>
Date: Mon Sep 18 11:01:05 2017 +0200
trivial: Make the updates refresh minimum age only 10 secs
It used to be 10 minutes which can be too much for some users.
src/gs-updates-page.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 32ed79c..c1f4d83 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -41,6 +41,8 @@
#include <langinfo.h>
+#define GS_REFRESH_MIN_AGE 10 /* sec */
+
typedef enum {
GS_UPDATES_PAGE_FLAG_NONE = 0,
GS_UPDATES_PAGE_FLAG_HAS_UPDATES = 1 << 0,
@@ -1269,7 +1271,7 @@ gs_updates_page_get_new_updates (GsUpdatesPage *self)
plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_REFRESH,
"failure-flags", GS_PLUGIN_FAILURE_FLAGS_USE_EVENTS,
"refresh-flags", refresh_flags,
- "age", (guint64) (10 * 60),
+ "age", (guint64) GS_REFRESH_MIN_AGE,
NULL);
gs_plugin_loader_job_process_async (self->plugin_loader, plugin_job,
self->cancellable_refresh,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]