diff --git a/src/repo/stat.js b/src/repo/stat.js index 2b922de03..6ecc07a73 100644 --- a/src/repo/stat.js +++ b/src/repo/stat.js @@ -6,10 +6,10 @@ const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, { numObjects: new Big(res.NumObjects), - repoSize: new Big(res.RepoSize), + repoSize: isNaN(res.RepoSize) ? res.RepoSize : new Big(res.RepoSize), repoPath: res.RepoPath, version: res.Version, - storageMax: new Big(res.StorageMax) + storageMax: isNaN(res.StorageMax) ? res.StorageMax : new Big(res.StorageMax) }) }