summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2021-11-12 12:44:09 -0600
committerPatrick Griffis <tingping@tingping.se>2021-11-12 12:44:09 -0600
commit8443755772160e61679e3122190da18ba10d8878 (patch)
tree8a4d8cedb7d6f1ad2977d700f8503b4a4ee91219 /src/common
parentf93b13a6a3ae0adf01257b265d2b7caa1d98c5a1 (diff)
Fix timer being locale dependent for decimals
`/timer .1 echo hi` now works in all locales.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/plugin-timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/plugin-timer.c b/src/common/plugin-timer.c
index d0c82c28..17f11ce3 100644
--- a/src/common/plugin-timer.c
+++ b/src/common/plugin-timer.c
@@ -198,7 +198,7 @@ timer_cb (char *word[], char *word_eol[], void *userdata)
 		offset += 2;
 	}
 
-	timeout = atof (word[2 + offset]);
+	timeout = g_ascii_strtod (word[2 + offset], NULL);
 	command = word_eol[3 + offset];
 
 	if (timeout < 0.1 || timeout * 1000 > INT_MAX || !command[0])