Skip to content

Commit

Permalink
Update dub.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed Mar 19, 2020
1 parent 9514fc8 commit ad063e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
4 changes: 2 additions & 2 deletions dub.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "hunt-console",
"description": "The Console component allows you to create command-line commands.",
"copyright": "Copyright (C) 2015-2018, HuntLabs",
"copyright": "Copyright (C) 2015-2020, HuntLabs",
"homepage": "https://www.huntlabs.net",
"license": "Apache-2.0",
"dependencies": {
"hunt": "~>1.1.0"
"hunt": "~>1.4.8"
},
"configurations":[
{
Expand Down
12 changes: 0 additions & 12 deletions hunt-console.iml

This file was deleted.

10 changes: 5 additions & 5 deletions source/hunt/console/helper/ProgressBar.d
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ProgressBar

setFormat(determineBestFormat());

startTime = DateTimeHelper.currentTimeMillis();
startTime = DateTime.currentTimeMillis();
}

public static void setPlaceholderFormatter(string name, PlaceholderFormatter formatter)
Expand Down Expand Up @@ -232,7 +232,7 @@ class ProgressBar

public void start(int max)
{
startTime = DateTimeHelper.currentTimeMillis();
startTime = DateTime.currentTimeMillis();
step = 0;
percent = 0f;

Expand Down Expand Up @@ -425,7 +425,7 @@ class ProgressBar
override public string format(ProgressBar bar, Output output)
{
import std.math;
return AbstractHelper.formatTime(cast(long)/* MathHelper. */round(( DateTimeHelper.currentTimeMillis() / 1000) - (bar.getStartTime() / 1000)));
return AbstractHelper.formatTime(cast(long)/* MathHelper. */round(( DateTime.currentTimeMillis() / 1000) - (bar.getStartTime() / 1000)));
}
});

Expand All @@ -442,7 +442,7 @@ class ProgressBar
remaining = 0;
} else {
import std.math;
remaining = /* MathHelper. */cast(long)round(cast(float) ( DateTimeHelper.currentTimeMillis() / 1000 - bar.getStartTime() / 1000) / cast(float) bar.getProgress() * (cast(float) bar.getMaxSteps() - cast(float) bar.getProgress()));
remaining = /* MathHelper. */cast(long)round(cast(float) ( DateTime.currentTimeMillis() / 1000 - bar.getStartTime() / 1000) / cast(float) bar.getProgress() * (cast(float) bar.getMaxSteps() - cast(float) bar.getProgress()));
}

return AbstractHelper.formatTime(remaining);
Expand All @@ -462,7 +462,7 @@ class ProgressBar
estimated = 0;
} else {
import std.math;
estimated =/* MathHelper. */cast(long)round(cast(float) ( DateTimeHelper.currentTimeMillis() / 1000 - bar.getStartTime() / 1000) / cast(float) bar.getProgress() * cast(float) bar.getMaxSteps());
estimated =/* MathHelper. */cast(long)round(cast(float) ( DateTime.currentTimeMillis() / 1000 - bar.getStartTime() / 1000) / cast(float) bar.getProgress() * cast(float) bar.getMaxSteps());
}

return AbstractHelper.formatTime(estimated);
Expand Down

0 comments on commit ad063e5

Please sign in to comment.