Update pluginCheck.js
parent
013a640c77
commit
ca8ff36e8a
|
@ -1,7 +1,7 @@
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const haltMessage = `This script has stopped and started too quickly. It has been suspended to prevent performance issues.`
|
const haltMessage = `This script has stopped and started too quickly. It has been suspended to prevent performance issues.`
|
||||||
const lastStartTimeLocation = `${process.cwd()}/lastStartTime.txt`
|
const lastStartTimeLocation = `${process.cwd()}/lastStartTime.txt`
|
||||||
const timeStarted = (new Date()).getTime()
|
const timeStarted = `${(new Date()).getTime()}`
|
||||||
const setStartTime = () => {
|
const setStartTime = () => {
|
||||||
fs.writeFileSync(lastStartTimeLocation,timeStarted,'utf8')
|
fs.writeFileSync(lastStartTimeLocation,timeStarted,'utf8')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue