Skip to content

Commit

Permalink
Update app_usage_provider.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
ledhcg committed Jun 16, 2023
1 parent 303fc82 commit bf93b6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class AppUsageProvider with ChangeNotifier {
await getStudentID();
if (userRole == RolesConst.STUDENT) {
getListAppUsage();
//Run it every 1 minute
_timer = Timer.periodic(const Duration(minutes: 1), (timer) {
//Run it every 10 seconds
_timer = Timer.periodic(const Duration(seconds: 10), (timer) {
getListAppUsage();
});
}
Expand Down

0 comments on commit bf93b6c

Please sign in to comment.