Skip to content

Commit

Permalink
the bandwidth menu options should always be integers
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@18141 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 24, 2018
1 parent b4341b8 commit 38f4243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/gtk_base/gtk_tray_menu_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
BANDWIDTH_MENU_OPTIONS = []
for x in os.environ.get("XPRA_BANDWIDTH_MENU_OPTIONS", "1,2,5,10,20,50,100").split(","):
try:
BANDWIDTH_MENU_OPTIONS.append(float(x)*1000*1000)
BANDWIDTH_MENU_OPTIONS.append(int(float(x)*1000*1000))
except ValueError:
log.warn("Warning: invalid bandwidth menu option '%s'", x)

Expand Down

0 comments on commit 38f4243

Please sign in to comment.