Ignore:
Timestamp:
04/16/15 12:44:28 (9 years ago)
Author:
dneise
Message:
renamed some variables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Main.js

    r18170 r18171  
    388388    dim.log("Starting shutdown ["+type+"].");
    389389
    390     var now1 = new Date();
     390    var shutdown_start_date = new Date();
    391391
    392392    var bias = dim.state("BIAS_CONTROL").name;
     
    396396    CloseLid();
    397397
    398     var now2 = new Date();
     398    var shutdown_after_close_lid_date = new Date();
    399399
    400400    if (type=="sleep")
     
    459459    dim.log("Finishing shutdown.");
    460460
    461     var now3 = new Date();
     461    var shutdown_after_bias_off_data = new Date();
    462462
    463463    dim.send("FTM_CONTROL/STOP_TRIGGER");
     
    492492    console.out("    PWR_CONTROL:  "+dim.state("PWR_CONTROL").name);
    493493    console.out("");
    494     dim.log("Shutdown: end ["+(now2-now1)/1000+"s, "+(now3-now2)/1000+"s, "+(new Date()-now3)/1000+"s]");
     494    dim.log("Shutdown: end ["
     495                   + (shutdown_after_close_lid_date-shutdown_start_date)/1000
     496                   + "s, "
     497                   + (shutdown_after_bias_off_data-shutdown_after_close_lid_date)/1000
     498                   + "s, "
     499                   + (new Date()-shutdown_after_bias_off_data)/1000+"s]"
     500           );
    495501    console.out("");
    496502
Note: See TracChangeset for help on using the changeset viewer.