예제 #1
0
 /**
  * undocumented function
  *
  * @return void
  * @author 
  **/
 public static function initsequence()
 {
     $date = date("Y-m-d H:i:s");
     $server = new Server();
     $id = $server->cron($date);
     $load = new Load();
     $load->cron($id, Sensor::restLoad(), $date);
     $load->stor($id, Sensor::restLoad(), $date, 'stor_load');
 }
예제 #2
0
 public function stor($id, $data, $date, $table)
 {
     static::$table = $table;
     $load = new Load();
     $load->server_id = $id;
     $load->load_one = $data->one;
     $load->load_five = $data->five;
     $load->load_fifteen = $data->fifteen;
     $load->load_uptime = $data->uptime;
     $load->load_user = $data->user;
     $load->load_date = $date;
     $load->save();
 }