[tracker/extractor-remove-word-counting-review] Set absolute max bytes that can be read to 10 Mbytes
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/extractor-remove-word-counting-review] Set absolute max bytes that can be read to 10 Mbytes
- Date: Tue, 18 May 2010 14:25:14 +0000 (UTC)
commit 9e42191f9631f5b09ac91b833457c496f19a0390
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue May 18 16:24:46 2010 +0200
Set absolute max bytes that can be read to 10 Mbytes
src/tracker-extract/tracker-config.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-extract/tracker-config.c b/src/tracker-extract/tracker-config.c
index cd171e6..cd71fd9 100644
--- a/src/tracker-extract/tracker-config.c
+++ b/src/tracker-extract/tracker-config.c
@@ -8,7 +8,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
@@ -30,7 +30,8 @@
/* Default values */
#define DEFAULT_VERBOSITY 0
-#define DEFAULT_MAX_BYTES 1048576 /* 1Mbyte */
+#define DEFAULT_MAX_BYTES 1048576 /* 1Mbyte */
+#define ABSOLUTE_MAX_BYTES 10485760 /* 10 Mbytes (GB#616845) */
typedef struct {
/* General */
@@ -101,9 +102,9 @@ tracker_config_class_init (TrackerConfigClass *klass)
PROP_MAX_BYTES,
g_param_spec_int ("max-bytes",
"Max Bytes",
- " Maximum number of UTF-8 bytes to extract per file [0->G_MAXINT]",
+ " Maximum number of UTF-8 bytes to extract per file [0->10485760]",
0,
- G_MAXINT,
+ ABSOLUTE_MAX_BYTES,
DEFAULT_MAX_BYTES,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]