This is an archive of the discontinued Mercurial Phabricator instance.

basepack: fix _getavailablepackfiles sizes
ClosedPublic

Authored by phillco on Nov 17 2017, 6:02 PM.
Tags
None
Subscribers

Details

Reviewers
quark
singhsrb
Group Reviewers
Restricted Project
Commits
rFBHGX9ad311f5e369: basepack: fix _getavailablepackfiles sizes
Summary

osutil.listdir yields (filename, type, stat), not (filename, size, stat), so we
need to look at the stat.st_size value to get the size. (Previously, we were
summing the file type codes :/)

This should fix packfile metrics.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

phillco created this revision.Nov 17 2017, 6:02 PM
Herald added a reviewer: Restricted Project. ยท View Herald TranscriptNov 17 2017, 6:02 PM
quark accepted this revision.Nov 17 2017, 6:08 PM
This revision is now accepted and ready to land.Nov 17 2017, 6:08 PM
singhsrb accepted this revision.Nov 17 2017, 6:09 PM
singhsrb added a subscriber: singhsrb.

Totally missed that in the review. Sorry about that!