API/api.medcify.app/node_modules/pm2-multimeter/example/single.js

12 lines
266 B
JavaScript
Raw Normal View History

2022-09-26 06:11:44 +00:00
var multimeter = require('multimeter');
var multi = multimeter(process);
multi.drop(function (bar) {
var iv = setInterval(function () {
var p = bar.percent();
bar.percent(p + 1);
if (p >= 100) clearInterval(iv);
}, 25);
});