Changeset 738 for trunk/Modules/NetworkShare/update.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkShare/update.php
r548 r738 1 1 <?php 2 2 3 //$Perioda = 3600*3; 3 //$Perioda = 3600*3; // prochazet po tech hodinach 4 4 5 5 $Dnes = date('Y-m-d'); … … 12 12 { 13 13 //echo('Host: '.$Host."...\n"); 14 14 15 15 //echo(.','.$Row['date']."\n"); 16 16 $HostID = 100; 17 17 $StartTime2 = GetMicrotime(); 18 if($Dnes != $Row['last_share_check']) 18 if($Dnes != $Row['last_share_check']) 19 19 { 20 20 echo("Kontroluji ".$Row['Name']."...\n"); … … 22 22 } 23 23 else echo("Vynechavam ".$Row['Name']."...\n"); 24 // Aktualizuj datum prochazeni 24 // Aktualizuj datum prochazeni 25 25 $Database->update('Hosts', "name='".$Row['name']."'",array('last_share_check' => $Dnes)); 26 26 } 27 27 $Rozdil = GetMicrotime()-$StartTime+10; 28 28 29 29 // Oprav a zoptimalizuj tabulku 30 30 //$Database->select_db('share'); … … 33 33 echo("\nOptimalizuji tabulku..."); 34 34 $Database->query('OPTIMIZE TABLE NetworkShareItem'); 35 35 36 36 echo("\nDoba procháení ".date("H:i:s",$Rozdil-3600)."\n\n"); 37 37 //$Cekat = $Perioda-$Rozdil;
Note:
See TracChangeset
for help on using the changeset viewer.