[X2Go-Commits] [x2gokdrive] 01/01: reduce amount of cache elements to save resources.

git-admin at x2go.org git-admin at x2go.org
Fri Oct 15 17:50:45 CEST 2021


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gokdrive.

commit a3f589b2de4b19b15190fd3c7c252ee1adc5a246
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Fri Oct 15 08:32:37 2021 -0500

    reduce amount of cache elements to save resources.
---
 debian/changelog   | 1 +
 x2gokdriveremote.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 1fafbb9..096ad4f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,7 @@ x2gokdrive (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
     - improve clearing of the frame list.
     - reiniting of frame and cursors caches by client request.
     - don't check cache data size, only amount of elements.
+    - reduce amount of cache elements to save resources.
 
   [ Mihai Moldovan ]
   * Initial release:
diff --git a/x2gokdriveremote.h b/x2gokdriveremote.h
index e445837..7770c36 100644
--- a/x2gokdriveremote.h
+++ b/x2gokdriveremote.h
@@ -138,7 +138,7 @@ enum OS_VERSION{OS_LINUX, OS_WINDOWS, OS_DARWIN, WEB};
 #define CACHEBPP 3
 
 
-#define CACHEMAXELEMENTS 200 //store max 200 elements in cache
+#define CACHEMAXELEMENTS 50 //store max 50 elements in cache
 
 //Events
 #define KEYPRESS 2

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdrive.git


More information about the x2go-commits mailing list