aboutsummaryrefslogtreecommitdiff
path: root/src/snap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 697326f..7332b99 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -261,14 +261,14 @@ private:
m_nn = notify_notification_new(title, body.c_str(), icon_name);
if (m_interactive)
{
- const int32_t duration_secs = m_sound_builder.duration_minutes()*60;
+ const int32_t duration_msec = m_sound_builder.duration_minutes()*60*1000;
notify_notification_set_hint(m_nn, HINT_SNAP,
g_variant_new_boolean(true));
notify_notification_set_hint(m_nn, HINT_TINT,
g_variant_new_boolean(true));
notify_notification_set_hint(m_nn, HINT_TIMEOUT,
- g_variant_new_int32(duration_secs));
+ g_variant_new_int32(duration_msec));
/// alarm popup dialog's button to show the active alarm
notify_notification_add_action(m_nn, "show", _("Show"),