Fix for SkillInfo array size

Correct SaveMetric usage
This commit is contained in:
asayre 2010-12-18 21:56:42 +00:00
parent 0caf1846d5
commit a85aac256f
3 changed files with 25 additions and 31 deletions

View file

@ -61,7 +61,7 @@ namespace Server
_indexQueue.Enqueue(info);
}
public int CommitTo(SequentialFileWriter dataFile, SequentialFileWriter indexFile)
public void CommitTo(SequentialFileWriter dataFile, SequentialFileWriter indexFile)
{
this.Flush();
@ -76,7 +76,8 @@ namespace Server
byte[] indexBuffer = new byte[20];
int indexWritten = _indexQueue.Count * indexBuffer.Length;
//int indexWritten = _indexQueue.Count * indexBuffer.Length;
//int totalWritten = memLength + indexWritten
while (_indexQueue.Count > 0)
{
@ -117,8 +118,6 @@ namespace Server
}
this.Close(); //We're donezo with this writer.
return memLength + indexWritten;
}
}
}