This change fixes a bug in the monitor output code where indexed bar rendering could try to access len - 1, which becomes negative when the bar length rounds to zero. The implementation now clamps that index with max 0, avoiding invalid indexing while preserving the existing rendering path for non-empty bars. In practice, percent bars now behave correctly at 0% instead of risking a crash or bad output.