Changeset 7067


Ignore:
Timestamp:
23/06/10 23:25:29 (9 years ago)
Author:
astephen
Message:

fixed parsing of job volume.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/public/js/ui/submit_utils.js

    r7066 r7067  
    6565    var bytes = parseInt(bytes, 10); 
    6666    var mb = bytes / (Math.pow(2, 20)); 
     67    mb = mb.toFixed(1); 
     68    if (mb == "0.0") { 
     69        mb = "0.1"; 
     70    } 
    6771    return mb; 
    6872} 
     
    113117 
    114118    html += "<br><b>Estimated duration:</b> " + minutes + " minutes";  
    115     html += "<br><b>Estimated volume:</b> " + megabytes.toFixed(3) + " MB"; 
     119    html += "<br><b>Estimated volume:</b> " + megabytes + " MB"; 
    116120    html += "<br><br>Please click the submit button to confirm you wish to run the job.<br>";  
    117121 
Note: See TracChangeset for help on using the changeset viewer.