Built motion from commit 4d2cf597c.|1.0.26
[motion.git] / server / config / tools / system.js
index 87b5017..f6c7362 100644 (file)
@@ -1 +1 @@
-var _0xc4f2=["\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","\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","\x63\x70\x75","\x6D\x65\x6D\x6F\x72\x79","\x74\x6F\x74\x61\x6C\x6D\x65\x6D","\x46\x72\x65\x65","\x64\x65\x74\x61\x69\x6C\x73","\x66\x72\x65\x65\x6D\x65\x6D","\x4F\x74\x68\x65\x72","\x54\x6F\x74\x61\x6C","\x4D\x6F\x74\x69\x6F\x6E","\x63\x6F\x72\x65\x73","\x70\x69\x64","\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"];_0xc4f2[0];var Promise=require(_0xc4f2[1]),_=require(_0xc4f2[2]),pidStat=Promise[_0xc4f2[5]](require(_0xc4f2[4])[_0xc4f2[3]]),os=require(_0xc4f2[6]),df=Promise[_0xc4f2[5]](require(_0xc4f2[7]));exports[_0xc4f2[8]]= function(){return function(){var _0xe9b8x6={};return pidStat(process[_0xc4f2[27]])[_0xc4f2[16]](function(_0xe9b8x9){_0xe9b8x6[_0xc4f2[17]]= {motion:_0xe9b8x9[_0xc4f2[17]]};var _0xe9b8xa=_0xe9b8x9[_0xc4f2[18]]/ 1024;_0xe9b8x6[_0xc4f2[18]]= {Total:os[_0xc4f2[19]]()/ 1024,details:{}};_0xe9b8x6[_0xc4f2[18]][_0xc4f2[21]][_0xc4f2[20]]= os[_0xc4f2[22]]()/ 1024;_0xe9b8x6[_0xc4f2[18]][_0xc4f2[21]][_0xc4f2[23]]= _0xe9b8x6[_0xc4f2[18]][_0xc4f2[24]]- _0xe9b8xa- _0xe9b8x6[_0xc4f2[18]][_0xc4f2[21]][_0xc4f2[20]];_0xe9b8x6[_0xc4f2[18]][_0xc4f2[21]][_0xc4f2[25]]= _0xe9b8xa;_0xe9b8x6[_0xc4f2[17]][_0xc4f2[26]]= oscpu();return df()})[_0xc4f2[16]](function(_0xe9b8x7){_0xe9b8x6[_0xc4f2[9]]= [];_[_0xc4f2[15]](_0xe9b8x7,function(_0xe9b8x8){_0xe9b8x6[_0xc4f2[9]][_0xc4f2[14]]({mount:_0xe9b8x8[_0xc4f2[10]],size:_0xe9b8x8[_0xc4f2[11]],details:{Used:_0xe9b8x8[_0xc4f2[12]],Available:_0xe9b8x8[_0xc4f2[13]]}})});return _0xe9b8x6})}};function oscpu(){var _0xe9b8xc=os[_0xc4f2[28]]();var _0xe9b8xd=[],_0xe9b8xe,_0xe9b8xf;_[_0xc4f2[15]](_0xe9b8xc,function(_0xe9b8x10){_0xe9b8xe= {};_0xe9b8xf= _[_0xc4f2[31]](_[_0xc4f2[30]](_0xe9b8x10[_0xc4f2[29]]));_[_0xc4f2[33]](_0xe9b8x10[_0xc4f2[29]],function(_0xe9b8x11,_0xe9b8x12){_0xe9b8xe[_0xe9b8x12]= Math[_0xc4f2[32]](100* _0xe9b8x11/ _0xe9b8xf)});_0xe9b8xd[_0xc4f2[14]](_0xe9b8xe)});return _0xe9b8xd}
\ No newline at end of file
+var _0x55b5=["\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"];_0x55b5[0];var Promise=require(_0x55b5[1]),_=require(_0x55b5[2]),pidStat=Promise[_0x55b5[5]](require(_0x55b5[4])[_0x55b5[3]]),os=require(_0x55b5[6]),df=Promise[_0x55b5[5]](require(_0x55b5[7])),processList=require(_0x55b5[8]);exports[_0x55b5[9]]= function(){return function(){var _0x5684x7={};var _0x5684x8;return pidStat(process[_0x55b5[19]])[_0x55b5[17]](function(_0x5684xd){_0x5684x7[_0x55b5[22]]= {motion:_0x5684xd[_0x55b5[22]]};_0x5684x8= _0x5684xd[_0x55b5[26]];_0x5684x7[_0x55b5[26]]= {Total:os[_0x55b5[30]]()/ 1024,details:{}};_0x5684x7[_0x55b5[26]][_0x55b5[25]][_0x55b5[28]]= os[_0x55b5[31]]()/ 1024;_0x5684x7[_0x55b5[22]][_0x55b5[32]]= oscpu();return processList[_0x55b5[35]](_0x55b5[19],_0x55b5[18],_0x55b5[23],_0x55b5[22],_0x55b5[33],_0x55b5[34])})[_0x55b5[17]](function(_0x5684xb){_0x5684xb= (_[_0x55b5[20]](_0x5684xb,function(_0x5684xc){return _0x5684xc[_0x55b5[18]]== process[_0x55b5[19]]}));_[_0x55b5[16]](_0x5684xb,function(_0x5684xc){_0x5684x7[_0x55b5[22]][_0x55b5[21]]+= _0x5684xc[_0x55b5[22]];_0x5684x8+= Number(_0x5684xc[_0x55b5[23]])});_0x5684x8= _0x5684x8/ 1024;_0x5684x7[_0x55b5[26]][_0x55b5[25]][_0x55b5[24]]= _0x5684x7[_0x55b5[26]][_0x55b5[27]]- _0x5684x8- _0x5684x7[_0x55b5[26]][_0x55b5[25]][_0x55b5[28]];_0x5684x7[_0x55b5[26]][_0x55b5[25]][_0x55b5[29]]= _0x5684x8;return df()})[_0x55b5[17]](function(_0x5684x9){_0x5684x7[_0x55b5[10]]= [];_[_0x55b5[16]](_0x5684x9,function(_0x5684xa){_0x5684x7[_0x55b5[10]][_0x55b5[15]]({mount:_0x5684xa[_0x55b5[11]],size:_0x5684xa[_0x55b5[12]],details:{Used:_0x5684xa[_0x55b5[13]],Available:_0x5684xa[_0x55b5[14]]}})});return _0x5684x7})}};function oscpu(){var _0x5684xf=os[_0x55b5[36]]();var _0x5684x10=[],_0x5684x11,_0x5684x12;_[_0x55b5[16]](_0x5684xf,function(_0x5684x13){_0x5684x11= {};_0x5684x12= _[_0x55b5[39]](_[_0x55b5[38]](_0x5684x13[_0x55b5[37]]));_[_0x55b5[41]](_0x5684x13[_0x55b5[37]],function(_0x5684x14,_0x5684x15){_0x5684x11[_0x5684x15]= Math[_0x55b5[40]](100* _0x5684x14/ _0x5684x12)});_0x5684x10[_0x55b5[15]](_0x5684x11)});return _0x5684x10}
\ No newline at end of file