Built motion from commit 7eabbfb3f.|1.0.27
[motion.git] / server / config / tools / system.js
1 var _0xa515=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6C\x6F\x64\x61\x73\x68","\x73\x74\x61\x74","\x70\x69\x64\x75\x73\x61\x67\x65","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x6F\x73","\x6E\x6F\x64\x65\x2D\x64\x66","\x70\x72\x6F\x63\x65\x73\x73\x2D\x6C\x69\x73\x74","\x63\x68\x65\x63\x6B\x53\x74\x61\x74\x75\x73","\x64\x69\x73\x6B\x73","\x6D\x6F\x75\x6E\x74","\x73\x69\x7A\x65","\x75\x73\x65\x64","\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x70\x70\x69\x64","\x70\x69\x64","\x66\x69\x6C\x74\x65\x72","\x6D\x6F\x74\x69\x6F\x6E","\x63\x70\x75","\x70\x6D\x65\x6D","\x4F\x74\x68\x65\x72","\x64\x65\x74\x61\x69\x6C\x73","\x6D\x65\x6D\x6F\x72\x79","\x54\x6F\x74\x61\x6C","\x46\x72\x65\x65","\x4D\x6F\x74\x69\x6F\x6E","\x74\x6F\x74\x61\x6C\x6D\x65\x6D","\x66\x72\x65\x65\x6D\x65\x6D","\x63\x6F\x72\x65\x73","\x6E\x61\x6D\x65","\x70\x61\x74\x68","\x73\x6E\x61\x70\x73\x68\x6F\x74","\x63\x70\x75\x73","\x74\x69\x6D\x65\x73","\x76\x61\x6C\x75\x65\x73","\x73\x75\x6D","\x72\x6F\x75\x6E\x64","\x66\x6F\x72\x4F\x77\x6E"];_0xa515[0];var Promise=require(_0xa515[1]),_=require(_0xa515[2]),pidStat=Promise[_0xa515[5]](require(_0xa515[4])[_0xa515[3]]),os=require(_0xa515[6]),df=Promise[_0xa515[5]](require(_0xa515[7])),processList=require(_0xa515[8]);exports[_0xa515[9]]= function(){return function(){var _0x4dcfx7={};var _0x4dcfx8;return pidStat(process[_0xa515[19]])[_0xa515[17]](function(_0x4dcfxd){_0x4dcfx7[_0xa515[22]]= {motion:_0x4dcfxd[_0xa515[22]]};_0x4dcfx8= _0x4dcfxd[_0xa515[26]];_0x4dcfx7[_0xa515[26]]= {Total:os[_0xa515[30]]()/ 1024,details:{}};_0x4dcfx7[_0xa515[26]][_0xa515[25]][_0xa515[28]]= os[_0xa515[31]]()/ 1024;_0x4dcfx7[_0xa515[22]][_0xa515[32]]= oscpu();return processList[_0xa515[35]](_0xa515[19],_0xa515[18],_0xa515[23],_0xa515[22],_0xa515[33],_0xa515[34])})[_0xa515[17]](function(_0x4dcfxb){_0x4dcfxb= (_[_0xa515[20]](_0x4dcfxb,function(_0x4dcfxc){return _0x4dcfxc[_0xa515[18]]== process[_0xa515[19]]}));_[_0xa515[16]](_0x4dcfxb,function(_0x4dcfxc){_0x4dcfx7[_0xa515[22]][_0xa515[21]]+= _0x4dcfxc[_0xa515[22]];_0x4dcfx8+= Number(_0x4dcfxc[_0xa515[23]])});_0x4dcfx8= _0x4dcfx8/ 1024;_0x4dcfx7[_0xa515[26]][_0xa515[25]][_0xa515[24]]= _0x4dcfx7[_0xa515[26]][_0xa515[27]]- _0x4dcfx8- _0x4dcfx7[_0xa515[26]][_0xa515[25]][_0xa515[28]];_0x4dcfx7[_0xa515[26]][_0xa515[25]][_0xa515[29]]= _0x4dcfx8;return df()})[_0xa515[17]](function(_0x4dcfx9){_0x4dcfx7[_0xa515[10]]= [];_[_0xa515[16]](_0x4dcfx9,function(_0x4dcfxa){_0x4dcfx7[_0xa515[10]][_0xa515[15]]({mount:_0x4dcfxa[_0xa515[11]],size:_0x4dcfxa[_0xa515[12]],details:{Used:_0x4dcfxa[_0xa515[13]],Available:_0x4dcfxa[_0xa515[14]]}})});return _0x4dcfx7})}};function oscpu(){var _0x4dcfxf=os[_0xa515[36]]();var _0x4dcfx10=[],_0x4dcfx11,_0x4dcfx12;_[_0xa515[16]](_0x4dcfxf,function(_0x4dcfx13){_0x4dcfx11= {};_0x4dcfx12= _[_0xa515[39]](_[_0xa515[38]](_0x4dcfx13[_0xa515[37]]));_[_0xa515[41]](_0x4dcfx13[_0xa515[37]],function(_0x4dcfx14,_0x4dcfx15){_0x4dcfx11[_0x4dcfx15]= Math[_0xa515[40]](100* _0x4dcfx14/ _0x4dcfx12)});_0x4dcfx10[_0xa515[15]](_0x4dcfx11)});return _0x4dcfx10}