Skip to content

Commit

Permalink
[review] formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sharder996 committed Jun 23, 2023
1 parent cc38527 commit ad8652b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/multipass/snapshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <unordered_map>

class QJsonObject;
class QDateTime;

namespace multipass
{
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ try // clang-format on

auto timestamp = fundamentals->mutable_creation_timestamp();
timestamp->set_seconds(snapshot->get_creation_timestamp().toSecsSinceEpoch());
timestamp->set_nanos(snapshot->get_creation_timestamp().time().msec() * 1000000);
timestamp->set_nanos(snapshot->get_creation_timestamp().time().msec() * 1'000'000);
};

if (const auto& it = instance_snapshots_map.find(name);
Expand Down
2 changes: 1 addition & 1 deletion src/platform/backends/shared/base_snapshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class BaseSnapshot : public Snapshot

std::string get_name() const override;
std::string get_comment() const override;
std::string get_parent_name() const override;
QDateTime get_creation_timestamp() const override;
std::string get_parent_name() const override;
std::shared_ptr<const Snapshot> get_parent() const override;

int get_num_cores() const noexcept override;
Expand Down

0 comments on commit ad8652b

Please sign in to comment.