Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
viper-kun committed Feb 25, 2015
1 parent 5b45035 commit 71782b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private[history] class FsHistoryProvider(conf: SparkConf) extends ApplicationHis
// Only directories older than now maxAge milliseconds mill will be deleted
statusList.foreach { dir =>
try {
if (now - getModificationTime(dir) > maxAge) {
if (now - dir.getModificationTime() > maxAge) {
fs.delete(dir.getPath, true)
}
} catch {
Expand Down

0 comments on commit 71782b5

Please sign in to comment.