Add total heap and total psram into Info tab
This commit is contained in:
@@ -641,6 +641,7 @@ function populateInfo(i)
|
||||
var cn="";
|
||||
var heap = i.freeheap/1000;
|
||||
heap = heap.toFixed(1);
|
||||
var theap = i.totalheap/1000; theap = theap.toFixed(1); //WLEDSR
|
||||
var pwr = i.leds.pwr;
|
||||
var pwru = "Not calculated";
|
||||
if (pwr > 1000) {pwr /= 1000; pwr = pwr.toFixed((pwr > 10) ? 0 : 1); pwru = pwr + " A";}
|
||||
@@ -659,13 +660,16 @@ function populateInfo(i)
|
||||
if (i.ver.includes("-bl")) vcn = "Supāku";
|
||||
if (i.cn) vcn = i.cn;
|
||||
|
||||
//WLEDSR: add total heap and total PSRAM
|
||||
cn += `v${i.ver} "${vcn}"<br><br><table>
|
||||
${urows}
|
||||
${urows===""?'':'<tr><td colspan=2><hr style="height:1px;border-width:0;color:gray;background-color:gray"></td></tr>'}
|
||||
${inforow("Build",i.vid)}
|
||||
${inforow("Signal strength",i.wifi.signal +"% ("+ i.wifi.rssi, " dBm)")}
|
||||
${inforow("Uptime",getRuntimeStr(i.uptime))}
|
||||
${inforow("Total heap",theap," kB")}
|
||||
${inforow("Free heap",heap," kB")}
|
||||
${i.tpram?inforow("Total PSRAM",(i.tpram/1024).toFixed(1)," kB"):""}
|
||||
${i.psram?inforow("Free PSRAM",(i.psram/1024).toFixed(1)," kB"):""}
|
||||
${inforow("Estimated current",pwru)}
|
||||
${inforow("Average FPS",i.leds.fps)}
|
||||
|
||||
Reference in New Issue
Block a user