February 21, 201016 yr Well I guess when it rains it pours.... here is another issue I'm having with unMENU not starting anymore: root@vault:/boot/unmenu# uu root@vault:/boot/unmenu# unmenu[2144]: awk: ./unmenu.awk:801: fatal: division by zero attempted root@vault:/boot/unmenu# ps -ef | grep uu root 2174 2089 0 02:00 pts/0 00:00:00 grep uu root@vault:/boot/unmenu#
February 21, 201016 yr In unmenu.awk, at line 801, change it from pct_complete = sprintf("%.1f", resync_pos/disk_size[rebuilding_disk]*100); To this (adding the lines in blue to surround line 801): if ( disk_size[rebuilding_disk] > 0 ) { pct_complete = sprintf("%.1f", resync_pos/disk_size[rebuilding_disk]*100); } else { pct_complete = 0; } You are the first to report this bug... You must have a disk reporting as zero in size?? (I did not expect that to ever occur). Use an editor that does not add carriage returns to the ends of lines when you make the change. (the editor in "mc" will work, or notepad2 as described in the wiki will also work fine) Joe L.
Archived
This topic is now archived and is closed to further replies.