Skip to content

Commit

Permalink
v1.1 init
Browse files Browse the repository at this point in the history
  • Loading branch information
miniyun committed Aug 26, 2015
1 parent 7482ef5 commit ef19ee0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/router/status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var statDiskUsed = function(subPath) {
return function(done) {
cp.exec('df -k ' + subPath, function(err, resp) {
var info = resp.toString()
console.log(info)
var pos1 = info.indexOf('/')
var pos2 = info.indexOf(' ', pos1)
var diskPath = info.substring(pos1, pos2 - 1)
Expand Down Expand Up @@ -54,7 +55,7 @@ var statServerUsed = function*(options) {
var subPath = info.path
for (var j = 0; j < disks.length; j++) {
var disk = disks[j]
if (disk.path === subPath) {
if (disk.path === subPath) {
isPush = true
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/status/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe(' status', function() {
.post('/api/v1/status/info')
.type('json')
.expect(200)
.end()
.end()
assert(res.body.length > 0, true)
done()
})
Expand Down

0 comments on commit ef19ee0

Please sign in to comment.