* times.cc (hires_ns::resolution): Don't return less than 1.

This commit is contained in:
Corinna Vinschen
2011-12-13 11:38:12 +00:00
parent 8cb58e8566
commit 74365d9715
2 changed files with 5 additions and 1 deletions

View File

@@ -718,7 +718,7 @@ hires_ns::resolution ()
return (long long) -1;
}
return (LONGLONG) freq;
return (freq <= 1.0) ? 1LL : (LONGLONG) freq;
}
UINT