Skip to content

Commit

Permalink
Add alert if space disk is low #2438
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 committed Jul 20, 2024
1 parent 3429887 commit 362b33c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/class/jeedom.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,10 @@ public static function cronDaily() {
} catch (Error $e) {
log::add('jeedom', 'error', $e->getMessage());
}
$disk_space = self::checkSpaceLeft();
if($disk_space < 10){
log::add('jeedom', 'error',__('Espace disque disponible faible : ',__FILE__).$disk_space.'%.'.__('Veuillez faire de la place (suppression de backup, de video/capture du plugin camera, d\'historique...)',__FILE__));
}
}

public static function cronHourly() {
Expand Down

0 comments on commit 362b33c

Please sign in to comment.