Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #17 from perfectlysensible/master

Datablocks support for AdamInternet
  • Loading branch information...
commit a8db7f2e7a2dceb29ae815f7bf920534130843ff 2 parents f3812a1 + 974dcda
@chucknthem authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 adam.js
View
4 adam.js
@@ -82,8 +82,8 @@ function adam_parseXML(text) {
for (var i=0; i<bucketNodes.length; i++){
// Assumes all values are in bytes, so divide to get MB.
- // Newsgroups don't have a DataBlocks node.
- var blockNodes = bucketNodes[i].getElementsByTagName("DataBlocks");
+ // Newsgroups don't have a Datablocks node.
+ var blockNodes = bucketNodes[i].getElementsByTagName("Datablocks");
var dataBlocksMb = (blockNodes.length > 0 ? blockNodes[0].childNodes[0].nodeValue / BYTES_PER_MB : 0 );
var dataUsageMb = bucketNodes[i].getElementsByTagName("Usage")[0].childNodes[0].nodeValue / BYTES_PER_MB;
Please sign in to comment.
Something went wrong with that request. Please try again.