@scrypted/server 0.7.60 → 0.7.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @scrypted/server might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.7.60",
3
+ "version": "0.7.61",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -617,13 +617,13 @@ class PluginRemote:
617
617
  pass
618
618
 
619
619
  async def start_stats_runner(self):
620
- update_stats = await self.peer.getParam('updateStats') + self.ptimeSum
620
+ update_stats = await self.peer.getParam('updateStats')
621
621
  if not update_stats:
622
622
  print('host did not provide update_stats')
623
623
  return
624
624
 
625
625
  def stats_runner():
626
- ptime = round(time.process_time() * 1000000)
626
+ ptime = round(time.process_time() * 1000000) + self.ptimeSum
627
627
  try:
628
628
  import psutil
629
629
  process = psutil.Process(os.getpid())