projects
/
libsub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a320a9a
)
Fix Time::all_as_seconds().
author
Carl Hetherington
<cth@carlh.net>
Tue, 20 Jan 2015 11:22:44 +0000
(11:22 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 20 Jan 2015 11:22:44 +0000
(11:22 +0000)
src/sub_time.cc
patch
|
blob
|
history
diff --git
a/src/sub_time.cc
b/src/sub_time.cc
index ed61cb445522d7655c7bb3a9cf3871535fd0ba66..7d8ebb629932194923c408f94421590f3dd9a9ca 100644
(file)
--- a/
src/sub_time.cc
+++ b/
src/sub_time.cc
@@
-156,5
+156,5
@@
Time::from_hms (int h, int m, int s, int ms)
double
Time::all_as_seconds () const
{
- return
seconds()
+ double(milliseconds ()) / 1000;
+ return
_seconds
+ double(milliseconds ()) / 1000;
}