!7 sclass FreeSystemMemory extends DynBigNumber { bool inGigabytes; S switchableFields() { ret 'inGigabytes; } start { setDescription("FREE SYSTEM MEMORY"); doEveryAndNow(4000, r actualUpdate); } void actualUpdate { //time "FSM" { // usually 2 - 15 ms setValue(inGigabytes ? toG(freeSystemMemory()) + " GB" : toM(freeSystemMemory()) + " MB"); //} } }