Re: Pgadmin4 System Stats Extension Design

Поиск
Список
Период
Сортировка
От Sahil Harpal
Тема Re: Pgadmin4 System Stats Extension Design
Дата
Msg-id CAKi=nncWKLYGGSZ0K7Gy_b9-NEE62iAjA6FoOKPi6JFBPTvcNA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Pgadmin4 System Stats Extension Design  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
Ответы Re: Pgadmin4 System Stats Extension Design  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
Список pgadmin-hackers
Hi Khushboo,

On Thu, 17 Aug 2023 at 10:39, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Can you please fix the below JS error ? Due to this CPU and Memory tabs are not working.
Screenshot 2023-08-17 at 10.35.34 AM.png
 
For me, it's working properly. I think in your case, the system is returning a null value for some of the processes. Could you please confirm this? If it is so, then either we can set a default value of 0 or simply a null string. Using console.log(), you can see what it is returning.

if(data.hasOwnProperty('pmu_stats')){
let pmu_info_list = [];
  const pmu_info_obj = data['pmu_stats'];
  console.log(pmu_info_obj); // It will print entire list in the console
  for (const key in pmu_info_obj) {
  pmu_info_list.push({ icon: '', pid: pmu_info_obj[key]['pid'], name: pmu_info_obj[key]['name'],
memory_usage: formatBytes(pmu_info_obj[key]['memory_usage']), memory_bytes: formatBytes(pmu_info_obj[key]['memory_bytes']) });
  }
setProcessMemoryUsageStats(pmu_info_list);
}image.gif
Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Khushboo Vashi
Дата:
Сообщение: Re: Pgadmin4 System Stats Extension Design
Следующее
От: Yogesh Mahajan
Дата:
Сообщение: [pgadmin-org/pgadmin4] e2f32c: Fix doc build failure due to SQLAlchemy changes. #...