Skip to content
Browse files

use current time to touch output file. Fixes gh-281

nanoTime doesn't returns current time
  • Loading branch information...
1 parent 1e77137 commit 3f287d5e5f8eb37ce94514ffed2aa143f1ba9065 @edbond edbond committed Jan 10, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 support/src/cljsbuild/compiler.clj
View
4 support/src/cljsbuild/compiler.clj
@@ -52,11 +52,11 @@
(fs/delete-dir (:output-dir compiler-options)))
(when output-file-dir
(fs/mkdirs output-file-dir))
- (let [started-at (System/nanoTime)]
+ (let [started-at (System/currentTimeMillis)]
(try
(binding [*assert* assert?]
(build (SourcePaths. cljs-paths) compiler-options))
- (fs/touch output-file (/ started-at 1000000))
+ (fs/touch output-file started-at)
(notify-cljs
notify-command
(str "Successfully compiled \"" output-file "\" in " (elapsed started-at) ".") green)

0 comments on commit 3f287d5

Please sign in to comment.
Something went wrong with that request. Please try again.