Skip to content

Commit

Permalink
Forgot to check this into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Potts committed Sep 15, 2017
1 parent 1e9b34c commit 6a6d9bf
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions aws/src/S3StreamDefaults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,7 @@ void ossim::S3StreamDefaults::loadDefaults()
}
if(!s3ReadBlocksize.empty())
{
ossim_int64 blockSize = s3ReadBlocksize.toInt64();
if(blockSize > 0)
{
ossimString byteType(s3ReadBlocksize.begin()+(s3ReadBlocksize.size()-1), s3ReadBlocksize.end());
byteType.upcase();
m_readBlocksize = blockSize;
if ( byteType == "K")
{
m_readBlocksize *=static_cast<ossim_int64>(1024);
}
else if ( byteType == "M")
{
m_readBlocksize *=static_cast<ossim_int64>(1048576);
}
else if ( byteType == "G")
{
m_readBlocksize *=static_cast<ossim_int64>(1073741824);
}
}
ossim_int64 blockSize = s3ReadBlocksize.memoryUnitToInt64();
}
if(nReadCacheHeaders.empty())
{
Expand Down

0 comments on commit 6a6d9bf

Please sign in to comment.