summaryrefslogtreecommitdiff
path: root/machine.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-15 07:17:35 -0600
committerJeff Carr <[email protected]>2025-02-15 07:28:42 -0600
commit8ad5e779311a5b7be1dd22ee92e582902ba33ed1 (patch)
tree465c0072e2abfcffa6c4bc1ace69684c55ecdd27 /machine.go
parentd3b6c1725d1657d20ba843e5f1323ab8019ea9d1 (diff)
show some more details in the tablev0.0.25
Diffstat (limited to 'machine.go')
-rw-r--r--machine.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/machine.go b/machine.go
index 9d5933c..ea8f424 100644
--- a/machine.go
+++ b/machine.go
@@ -1,8 +1,11 @@
package main
import (
+ "time"
+
"go.wit.com/lib/protobuf/zoopb"
"go.wit.com/log"
+ "google.golang.org/protobuf/types/known/timestamppb"
)
// someone sent machine 'u' is it new?
@@ -41,6 +44,7 @@ func updateMachine(u *zoopb.Machine) string {
if zood := m.Packages.FindByName("zood"); zood != nil {
log.Log(INFO, m.Hostname, "has zood version", zood.Version)
}
+ m.Laststamp = timestamppb.New(time.Now())
updatePackages(m, u.Packages)
return "upgrade"