From 46fbcad2aac3720b826d56b6cc5b483b98a07cf3 Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Sun, 11 Nov 2007 00:11:34 +0000 Subject: Fixed bug in assetcache where certain textures were not being packetized correctly --- OpenSim/Framework/Communications/Cache/AssetCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index 8adf76c..0ea33ff 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -325,7 +325,7 @@ namespace OpenSim.Framework.Communications.Cache if (image.Data.LongLength > 600) { //over 600 bytes so split up file - req.NumPackets = 1 + (int) (image.Data.Length - 600)/1000; + req.NumPackets = 2 + (int) (image.Data.Length - 601)/1000; } else { -- cgit v1.1