Skip to content

Commit

Permalink
fix size display in ResourceCacheDevice
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=599e2b22b5c179696cf4f7b2246f85e2fa454cd3
  • Loading branch information
technetium-cfx authored and blattersturm committed Apr 16, 2017
1 parent 0186599 commit f974292
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -212,6 +212,11 @@ bool ResourceCacheDevice::EnsureFetched(HandleData* handleData)
else
{
// log success
{
auto device = vfs::GetDevice(outFileName);
outSize = device->GetLength(outFileName);
}

trace("ResourceCacheDevice: downloaded %s in %d msec (size %d)\n", handleData->entry.basename.c_str(), (timeGetTime() - initTime), outSize);

// add the file to the resource cache
Expand Down

0 comments on commit f974292

Please sign in to comment.