Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@edbond

nanoTime doesn't returns current time

@edbond edbond use current time to touch output file. Fixes gh-281
nanoTime doesn't returns current time
3f287d5
@cemerick cemerick merged commit 952c46f into emezeske:master
@cemerick cemerick referenced this pull request from a commit
@cemerick cemerick use millis to match gh-282 1458623
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 10, 2014
  1. @edbond

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

    edbond authored
    nanoTime doesn't returns current time
This page is out of date. Refresh to see the latest.
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)
Something went wrong with that request. Please try again.