Skip to content
Browse files

Merge pull request #17 from perfectlysensible/master

Datablocks support for AdamInternet
  • Loading branch information...
2 parents f3812a1 + 974dcda commit a8db7f2e7a2dceb29ae815f7bf920534130843ff @chucknthem committed
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;

0 comments on commit a8db7f2

Please sign in to comment.
Something went wrong with that request. Please try again.