Fix telemetry typo and simplify microcode script
Correct telemetry status spelling ("sucess" → "success") and map status values accordingly. Normalize EOF/newline handling in several misc/data files. Major refactor of tools/pve/microcode.sh: update copyright/author, remove the verbose CPU detection/display helpers, simplify current microcode detection, streamline package discovery and selection logic, switch wget to curl, clean up download/install flow (use basename and remove /tmp usage), simplify UI/messages and exit handling, and remove live microcode reload/version post-install checks.
This commit is contained in:
@@ -264,4 +264,4 @@ This is an automated test message.
|
||||
// Helper for timeout context
|
||||
func newTimeoutContext(d time.Duration) (context.Context, context.CancelFunc) {
|
||||
return context.WithTimeout(context.Background(), d)
|
||||
}
|
||||
}
|
||||
@@ -155,4 +155,4 @@ func (c *Cache) InvalidateDashboard(ctx context.Context) {
|
||||
|
||||
func dashboardCacheKey(days int) string {
|
||||
return "dashboard:" + string(rune(days))
|
||||
}
|
||||
}
|
||||
@@ -1484,4 +1484,4 @@ func DashboardHTML() string {
|
||||
</script>
|
||||
</body>
|
||||
</html>`
|
||||
}
|
||||
}
|
||||
@@ -1024,4 +1024,4 @@ func splitCSV(s string) []string {
|
||||
}
|
||||
}
|
||||
return out
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user