[gnome-software: 13/38] fedora-pkgdb-collections: Rename a variable




commit 60d0ace5c6c981bc6f51900c42a18b71ce511201
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Feb 25 16:40:59 2022 +0000

    fedora-pkgdb-collections: Rename a variable
    
    Include its units in the name, making it clearer whether it’s in
    seconds, milliseconds or microseconds.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 .../fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c 
b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
index c380a9803..4a52540f3 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -224,7 +224,7 @@ gs_plugin_fedora_pkgdb_collections_setup_finish (GsPlugin      *plugin,
 
 static gboolean
 _refresh_cache (GsPluginFedoraPkgdbCollections *self,
-               guint cache_age,
+               guint64 cache_age_secs,
                GCancellable *cancellable,
                GError **error)
 {
@@ -232,10 +232,10 @@ _refresh_cache (GsPluginFedoraPkgdbCollections *self,
        g_autoptr(GsApp) app_dl = gs_app_new (gs_plugin_get_name (plugin));
 
        /* check cache age */
-       if (cache_age > 0) {
+       if (cache_age_secs > 0) {
                g_autoptr(GFile) file = g_file_new_for_path (self->cachefn);
                guint64 tmp = gs_utils_get_file_age (file);
-               if (tmp < cache_age) {
+               if (tmp < cache_age_secs) {
                        g_debug ("%s is only %" G_GUINT64_FORMAT " seconds old",
                                 self->cachefn, tmp);
                        return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]