Add two new fields to Nodes & DB to track last run-time and last down-time
authorStephen Soltesz <soltesz@cs.princeton.edu>
Fri, 27 May 2011 21:12:22 +0000 (17:12 -0400)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Fri, 27 May 2011 21:12:22 +0000 (17:12 -0400)
commit7e1cc31ebbf14297f1b6e02c1b011cfd4cd0d243
tree702a83c676baae249822dcffabe49fae43db1907
parent91e6eb8f4cb875e6967fb51135b90ba2dc184cc6
Add two new fields to Nodes & DB to track last run-time and last down-time
    add fields: last_time_spent_online & last_time_spent_offline
    make BootUpdateNode conditional on parameters passed so these values are
        calculated only once per boot.
    bootmanager was also updated to enforce this limit in a separate patch.
PLC/Methods/BootUpdateNode.py
PLC/Nodes.py
migrations/105-down-timespent.sql [new file with mode: 0644]
migrations/105-up-timespent.sql [new file with mode: 0644]