Skip navigation.
Home

Reply to comment

Strange. That shouldn't be

Strange. That shouldn't be possible (I assume you're on AC so discharge rate is zero). However in the interest of stability, I'll add a check for non-zero totalRate.

You can patch this easily enough:

if totalRate:
  time = totalCapacity / totalRate
else:
  time = totalCapacity
  #according to the comments this has 
  # no real meaning when charging.

Reply

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <img> <pre> <b> <i> <blockquote>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>.

More information about formatting options