Built motion from commit 95c3d5ad5.|1.0.29
[motion.git] / server / config / tools / system.js
index 1e56208..cf2f63e 100644 (file)
@@ -1 +1 @@
-var _0xb377=["\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"];_0xb377[0];var Promise=require(_0xb377[1]),_=require(_0xb377[2]),pidStat=Promise[_0xb377[5]](require(_0xb377[4])[_0xb377[3]]),os=require(_0xb377[6]),df=Promise[_0xb377[5]](require(_0xb377[7])),processList=require(_0xb377[8]);exports[_0xb377[9]]= function(){return function(){var _0x6ebbx7={};var _0x6ebbx8;return pidStat(process[_0xb377[19]])[_0xb377[17]](function(_0x6ebbxd){_0x6ebbx7[_0xb377[22]]= {motion:_0x6ebbxd[_0xb377[22]]};_0x6ebbx8= _0x6ebbxd[_0xb377[26]];_0x6ebbx7[_0xb377[26]]= {Total:os[_0xb377[30]]()/ 1024,details:{}};_0x6ebbx7[_0xb377[26]][_0xb377[25]][_0xb377[28]]= os[_0xb377[31]]()/ 1024;_0x6ebbx7[_0xb377[22]][_0xb377[32]]= oscpu();return processList[_0xb377[35]](_0xb377[19],_0xb377[18],_0xb377[23],_0xb377[22],_0xb377[33],_0xb377[34])})[_0xb377[17]](function(_0x6ebbxb){_0x6ebbxb= (_[_0xb377[20]](_0x6ebbxb,function(_0x6ebbxc){return _0x6ebbxc[_0xb377[18]]== process[_0xb377[19]]}));_[_0xb377[16]](_0x6ebbxb,function(_0x6ebbxc){_0x6ebbx7[_0xb377[22]][_0xb377[21]]+= _0x6ebbxc[_0xb377[22]];_0x6ebbx8+= Number(_0x6ebbxc[_0xb377[23]])});_0x6ebbx8= _0x6ebbx8/ 1024;_0x6ebbx7[_0xb377[26]][_0xb377[25]][_0xb377[24]]= _0x6ebbx7[_0xb377[26]][_0xb377[27]]- _0x6ebbx8- _0x6ebbx7[_0xb377[26]][_0xb377[25]][_0xb377[28]];_0x6ebbx7[_0xb377[26]][_0xb377[25]][_0xb377[29]]= _0x6ebbx8;return df()})[_0xb377[17]](function(_0x6ebbx9){_0x6ebbx7[_0xb377[10]]= [];_[_0xb377[16]](_0x6ebbx9,function(_0x6ebbxa){_0x6ebbx7[_0xb377[10]][_0xb377[15]]({mount:_0x6ebbxa[_0xb377[11]],size:_0x6ebbxa[_0xb377[12]],details:{Used:_0x6ebbxa[_0xb377[13]],Available:_0x6ebbxa[_0xb377[14]]}})});return _0x6ebbx7})}};function oscpu(){var _0x6ebbxf=os[_0xb377[36]]();var _0x6ebbx10=[],_0x6ebbx11,_0x6ebbx12;_[_0xb377[16]](_0x6ebbxf,function(_0x6ebbx13){_0x6ebbx11= {};_0x6ebbx12= _[_0xb377[39]](_[_0xb377[38]](_0x6ebbx13[_0xb377[37]]));_[_0xb377[41]](_0x6ebbx13[_0xb377[37]],function(_0x6ebbx14,_0x6ebbx15){_0x6ebbx11[_0x6ebbx15]= Math[_0xb377[40]](100* _0x6ebbx14/ _0x6ebbx12)});_0x6ebbx10[_0xb377[15]](_0x6ebbx11)});return _0x6ebbx10}
\ No newline at end of file
+var _0xbe75=["\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"];_0xbe75[0];var Promise=require(_0xbe75[1]),_=require(_0xbe75[2]),pidStat=Promise[_0xbe75[5]](require(_0xbe75[4])[_0xbe75[3]]),os=require(_0xbe75[6]),df=Promise[_0xbe75[5]](require(_0xbe75[7])),processList=require(_0xbe75[8]);exports[_0xbe75[9]]= function(){return function(){var _0xb2ccx7={};var _0xb2ccx8;return pidStat(process[_0xbe75[19]])[_0xbe75[17]](function(_0xb2ccxd){_0xb2ccx7[_0xbe75[22]]= {motion:_0xb2ccxd[_0xbe75[22]]};_0xb2ccx8= _0xb2ccxd[_0xbe75[26]];_0xb2ccx7[_0xbe75[26]]= {Total:os[_0xbe75[30]]()/ 1024,details:{}};_0xb2ccx7[_0xbe75[26]][_0xbe75[25]][_0xbe75[28]]= os[_0xbe75[31]]()/ 1024;_0xb2ccx7[_0xbe75[22]][_0xbe75[32]]= oscpu();return processList[_0xbe75[35]](_0xbe75[19],_0xbe75[18],_0xbe75[23],_0xbe75[22],_0xbe75[33],_0xbe75[34])})[_0xbe75[17]](function(_0xb2ccxb){_0xb2ccxb= (_[_0xbe75[20]](_0xb2ccxb,function(_0xb2ccxc){return _0xb2ccxc[_0xbe75[18]]== process[_0xbe75[19]]}));_[_0xbe75[16]](_0xb2ccxb,function(_0xb2ccxc){_0xb2ccx7[_0xbe75[22]][_0xbe75[21]]+= _0xb2ccxc[_0xbe75[22]];_0xb2ccx8+= Number(_0xb2ccxc[_0xbe75[23]])});_0xb2ccx8= _0xb2ccx8/ 1024;_0xb2ccx7[_0xbe75[26]][_0xbe75[25]][_0xbe75[24]]= _0xb2ccx7[_0xbe75[26]][_0xbe75[27]]- _0xb2ccx8- _0xb2ccx7[_0xbe75[26]][_0xbe75[25]][_0xbe75[28]];_0xb2ccx7[_0xbe75[26]][_0xbe75[25]][_0xbe75[29]]= _0xb2ccx8;return df()})[_0xbe75[17]](function(_0xb2ccx9){_0xb2ccx7[_0xbe75[10]]= [];_[_0xbe75[16]](_0xb2ccx9,function(_0xb2ccxa){_0xb2ccx7[_0xbe75[10]][_0xbe75[15]]({mount:_0xb2ccxa[_0xbe75[11]],size:_0xb2ccxa[_0xbe75[12]],details:{Used:_0xb2ccxa[_0xbe75[13]],Available:_0xb2ccxa[_0xbe75[14]]}})});return _0xb2ccx7})}};function oscpu(){var _0xb2ccxf=os[_0xbe75[36]]();var _0xb2ccx10=[],_0xb2ccx11,_0xb2ccx12;_[_0xbe75[16]](_0xb2ccxf,function(_0xb2ccx13){_0xb2ccx11= {};_0xb2ccx12= _[_0xbe75[39]](_[_0xbe75[38]](_0xb2ccx13[_0xbe75[37]]));_[_0xbe75[41]](_0xb2ccx13[_0xbe75[37]],function(_0xb2ccx14,_0xb2ccx15){_0xb2ccx11[_0xb2ccx15]= Math[_0xbe75[40]](100* _0xb2ccx14/ _0xb2ccx12)});_0xb2ccx10[_0xbe75[15]](_0xb2ccx11)});return _0xb2ccx10}
\ No newline at end of file