summaryrefslogtreecommitdiff
path: root/plugins/Alarms/src/alarmlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Alarms/src/alarmlist.cpp')
-rw-r--r--plugins/Alarms/src/alarmlist.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/Alarms/src/alarmlist.cpp b/plugins/Alarms/src/alarmlist.cpp
index ffd15809ee..2bfe65a20a 100644
--- a/plugins/Alarms/src/alarmlist.cpp
+++ b/plugins/Alarms/src/alarmlist.cpp
@@ -581,14 +581,7 @@ void DoAlarm(ALARM *alarm)
void WriteLastCheckTime() {
// save last-check time
- DBCONTACTWRITESETTING dbcws;
- dbcws.szModule = MODULE;
- dbcws.szSetting = "LastCheck";
- dbcws.value.type = DBVT_BLOB;
- dbcws.value.cpbVal = sizeof(SYSTEMTIME);
- dbcws.value.pbVal = (BYTE *)&last_check;
- CallService(MS_DB_CONTACT_WRITESETTING, 0, (LPARAM)&dbcws);
-
+ db_set_blob(NULL, MODULE, "LastCheck", &last_check, sizeof(SYSTEMTIME));
last_saved_check = last_check;
}