Commit f530671e authored by Arne Øslebø's avatar Arne Øslebø
Browse files

added minute interval to time string parsing

git-svn-id: file:///home/svn/mapi/trunk@219 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent abe93204
......@@ -14,6 +14,7 @@
#include "mapidevices.h"
#include "debug.h"
#define TIME_M 257698037760ULL
#define TIME_S 4294967296ULL
#define TIME_MS 4294967
#define TIME_US 4294
......@@ -165,6 +166,8 @@ unsigned long long fhlp_str2ull(char *str)
return TIME_US*value;
else if(strchr(str,'s')!=NULL)
return TIME_S*value;
else if(strchr(str,'m')!=NULL)
return TIME_M*value;
else return value;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment