Skip to content

Commit

Permalink
Magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
burqen committed Sep 19, 2016
1 parent 59be234 commit 5d55bb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public long write( String path, ReadableByteChannel data, ByteBuffer temporaryBu
targetBuffer.writeByte( hasData ? 1 : 0 );
// TODO Make use of temporaryBuffer?
BlockLogBuffer buffer = new BlockLogBuffer( targetBuffer, bufferMonitor );
long totalWritten = 2 + chars.length*2 + 1;
long totalWritten = Short.BYTES + chars.length* Character.BYTES + Byte.BYTES;
if ( hasData )
{
targetBuffer.writeInt( recordSize );
Expand Down

0 comments on commit 5d55bb0

Please sign in to comment.