File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -134,14 +134,12 @@ should probably be re-run from scratch to get into a good state again.
134
134
135
135
The timestamp is always given in millisecond but the time resolution can be
136
136
rounded using the ` precision ` parameter. The use case is to be able to compare a build time
137
- to a file time attribute. On node v0.10 or with file system like HFS or FAT,
138
- ` fs.stat ` time attributes like ` mtime ` precision is one second.
137
+ to a file time attribute.
139
138
140
139
Assuming ` undertakerInst.lastRun('someTask') ` returns ` 1426000001111 ` ,
141
140
` undertakerInst.lastRun('someTask', 1000) ` returns ` 1426000001000 ` .
142
141
143
- The default time resolution is ` 1000 ` on node v0.10, ` 0 ` on node 0.11+ but
144
- it can be overwritten using ` UNDERTAKER_TIME_RESOLUTION ` environment variable.
142
+ The default time resolution is ` 1 ` .
145
143
146
144
## Custom Registries
147
145
Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ var retrieveLastRun = require('last-run');
5
5
var metadata = require ( './helpers/metadata' ) ;
6
6
7
7
function lastRun ( task , timeResolution ) {
8
- if ( timeResolution == null ) {
9
- timeResolution = process . env . UNDERTAKER_TIME_RESOLUTION ;
10
- }
11
-
12
8
var fn = task ;
13
9
if ( typeof task === 'string' ) {
14
10
fn = this . _getTask ( task ) ;
You can’t perform that action at this time.
0 commit comments