Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
caihuiji committed May 8, 2017
1 parent bcdea96 commit e6705b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controller/action/LogAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ var LogAction = {

var offlineFiles = fs.readdirSync(filePath);
var offlineFilesList = [];
offlineFiles.sort(function (a, b){
if(a < b ){
return 1;
}else {
return -1;
}
})

offlineFiles = offlineFiles.slice(0,50);

offlineFiles.forEach(function (item){
offlineFilesList.push({
Expand Down

0 comments on commit e6705b0

Please sign in to comment.