Change the speed meter decimal places

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
jalebi
Newbie
Newbie
Posts: 3
Joined: October 13th, 2011, 6:38 am

Change the speed meter decimal places

Post by jalebi »

In previous versions of SABnzbd the speed meter read the download speeds to two decimal places, i.e. 5.67MB/s. Currently it reads it to one decimal place, i.e. 5.7MB/s. I know this is a minor gripe, and SAB itself is absolutely amazing, but is there anyway to change this?

Regards,

Prad
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Change the speed meter decimal places

Post by shypike »

jalebi wrote: but is there anyway to change this?
It's open source :)
https://github.com/sabnzbd/sabnzbd.git
jalebi
Newbie
Newbie
Posts: 3
Joined: October 13th, 2011, 6:38 am

Re: Change the speed meter decimal places

Post by jalebi »

While that is indeed true, I am a terrible coder/programmer. Does anyone know a simple method to change the amount of decimal places?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Change the speed meter decimal places

Post by shypike »

You have to realize that this doesn't actually increase precision,
because SABnzbd's shows nothing more than an average speed with limited precision.
I'm not sure why or when it changed, likely it's a choice made by the skin designer.
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Change the speed meter decimal places

Post by sander »

jalebi wrote:While that is indeed true, I am a terrible coder/programmer. Does anyone know a simple method to change the amount of decimal places?
The answer to that question is in the first sentence of your first post in this thread ... ;)
jalebi
Newbie
Newbie
Posts: 3
Joined: October 13th, 2011, 6:38 am

Re: Change the speed meter decimal places

Post by jalebi »

OK then, thanks for the responses either way. They are appreciated.
Post Reply