--- panel-plugin/config_gui.c +++ panel-plugin/config_gui.c @@ -191,7 +191,7 @@ int CreateConfigGUI (GtkWidget * vbox1, struct gui_t *p_poGUI) gtk_box_pack_start (GTK_BOX (wHBox_MaxIO), wTF_MaxXfer, TRUE, TRUE, 0); gtk_widget_set_tooltip_text (wTF_MaxXfer, _("Input the maximum I/O transfer rate of the device, then press ")); - gtk_entry_set_max_length (GTK_ENTRY (wTF_MaxXfer), 3); + gtk_entry_set_max_length (GTK_ENTRY (wTF_MaxXfer), 5); gtk_entry_set_text (GTK_ENTRY (wTF_MaxXfer), _("35")); hseparator8 = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); --- panel-plugin/main.c +++ panel-plugin/main.c @@ -825,8 +825,8 @@ static void SetXferRate (Widget_t p_wTF, void *p_pvPlugin) /* Make it a multiple of 5 MB/s */ poConf->iMaxXferMBperSec = 5 * round((double) atoi(pcXferRate) / 5); - if (poConf->iMaxXferMBperSec > 995) - poConf->iMaxXferMBperSec = 995; + if (poConf->iMaxXferMBperSec > 32767) + poConf->iMaxXferMBperSec = 32765; else if (poConf->iMaxXferMBperSec < 5) poConf->iMaxXferMBperSec = 5; DBG("XferRate rounded to %dMb/s\n", poConf->iMaxXferMBperSec);