Skip to content

Commit

Permalink
Fix for #130 - Average Layer Time shows time in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
sco01 committed Mar 6, 2020
1 parent 68e45d2 commit b285ddb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions octoprint_dashboard/static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $(function () {
self.lastLayerDuration = ko.observable("-");
self.lastLayerDurationInSeconds = ko.observable("-");
self.averageLayerDuration = ko.observable("-");
self.averageLayerDuration = ko.observable("-");
self.averageLayerDurationInSeconds = ko.observable("-");
self.changeFilamentTimeLeftInSeconds = ko.observable("-");
self.changeFilamentCount = ko.observable("-");

Expand Down Expand Up @@ -70,6 +70,7 @@ $(function () {
}
};


self.toggleFullBrowserWindow = function () {
if (!dashboardIsFull) {
//location.href="/#tab_plugin_dashboard/?dashboard=full";
Expand Down Expand Up @@ -419,7 +420,7 @@ $(function () {
if (data.lastLayerDuration) { self.lastLayerDuration(data.lastLayerDuration); }
if (data.lastLayerDurationInSeconds) { self.lastLayerDurationInSeconds(data.lastLayerDurationInSeconds); }
if (data.averageLayerDuration) { self.averageLayerDuration(data.averageLayerDuration); }
if (data.averageLayerDurationInSeconds) { self.averageLayerDuration(data.averageLayerDurationInSeconds); }
if (data.averageLayerDurationInSeconds) { self.averageLayerDurationInSeconds(data.averageLayerDurationInSeconds); }
if (data.changeFilamentTimeLeftInSeconds) { self.changeFilamentTimeLeftInSeconds(data.changeFilamentTimeLeftInSeconds); }
if (data.changeFilamentCount) { self.changeFilamentCount(data.changeFilamentCount); }
if (data.cpuPercent) { self.cpuPercent(data.cpuPercent); }
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
plugin_name = "OctoPrint-Dashboard"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.11.3"
plugin_version = "1.11.4"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit b285ddb

Please sign in to comment.