Skip to content

Commit c9cd768

Browse files
committed
Bugfix hour display
1 parent 3aecadf commit c9cd768

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ Add config file (now you can set hour per day)
3232

3333
## 0.5.5
3434

35-
Add gif to document
35+
Add gif to document
36+
37+
## 0.5.6
38+
39+
Bugfix hour display

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "csak-ext-timer",
33
"displayName": "csak-ext-timer",
44
"description": "If you want to know what time was spent for projects",
5-
"version": "0.5.5",
5+
"version": "0.5.6",
66
"publisher": "csakaszamok",
77
"engines": {
88
"vscode": "^1.18.0"

src/extension.ts

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class WordCounter {
100100

101101
if (globalConfig.hoursperday && globalConfig.hoursperday > 0) {
102102
days = Math.floor((days * 24 + hours) / globalConfig.hoursperday); //8 hour per workday
103+
hours = hours - (days * 8);
103104
return `${days} day + ${padding(hours)}:${padding(minutes)}:${padding(seconds)}`;
104105
}
105106

0 commit comments

Comments
 (0)