API/api.medcify.app/node_modules/pm2-multimeter/example/single.js
2022-09-26 11:41:44 +05:30

12 lines
266 B
JavaScript

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);
});