From 295bc4cbebdcb0beb89f4698566950c460e22eee Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 10 Jun 2020 16:04:20 +0200 Subject: [PATCH] use other filename then compress --- src/DataValue.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/DataValue.cs b/src/DataValue.cs index f0a0eb8..b9d0703 100644 --- a/src/DataValue.cs +++ b/src/DataValue.cs @@ -181,7 +181,10 @@ namespace OpenSim.Modules.DataValue string _storageKey = BitConverter.ToString(new MD5CryptoServiceProvider().ComputeHash(ASCIIEncoding.ASCII.GetBytes(index.Trim().ToUpper()))).Replace("-", ""); - return m_dataValueDirectory + "/" + _nameSpace + "/" + _storageKey + ".gz"; + if(m_enabledCompress) + return m_dataValueDirectory + "/" + _nameSpace + "/" + _storageKey + ".gz"; + + return m_dataValueDirectory + "/" + _nameSpace + "/" + _storageKey + ".txt"; } return null;