Skip to content

Commit 4b77365

Browse files
committed
fix: file_size should be full length, not unread portion
1 parent b9ac16c commit 4b77365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/files/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewFromStore(store database.Store, registerer prometheus.Registerer, authz
3535
return CacheEntryValue{
3636
Object: file.RBACObject(),
3737
FS: archivefs.FromTarReader(content),
38-
Size: int64(content.Len()),
38+
Size: int64(len(file.Data)),
3939
}, nil
4040
}
4141

0 commit comments

Comments
 (0)