Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c9b0b0c9d | ||
|
|
dee941b68a | ||
|
|
1b24db682a |
No files matched your search
@@ -53,11 +53,11 @@ export function createChart({
|
||||
}
|
||||
|
||||
// Build uPlot data for ALL series (including hidden ones)
|
||||
const uPlotData: uPlot.AlignedData = [timestamps as any];
|
||||
const uPlotData: uPlot.AlignedData = [timestamps as uPlot.AlignedData[0]];
|
||||
|
||||
allOriginalSeries.forEach(({ series }) => {
|
||||
const [, values] = seriesToUPlotData(series.long);
|
||||
uPlotData.push(values as any);
|
||||
uPlotData.push(values as uPlot.AlignedData[1]);
|
||||
});
|
||||
|
||||
// Add config lines data
|
||||
@@ -70,7 +70,7 @@ export function createChart({
|
||||
line.value,
|
||||
)
|
||||
: new Array(timestamps.length).fill(line.value);
|
||||
uPlotData.push(lineData as any);
|
||||
uPlotData.push(lineData as uPlot.AlignedData[number]);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -367,26 +367,13 @@ export function createChart({
|
||||
return ticks.map((ts) => {
|
||||
const date = new Date(ts);
|
||||
|
||||
if (timeRange <= 30 * 1000) {
|
||||
if (timeRange <= 5 * 60 * 1000) {
|
||||
return date.toLocaleTimeString(undefined, {
|
||||
hour12: false,
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
});
|
||||
} else if (timeRange <= 5 * 60 * 1000) {
|
||||
return date.toLocaleTimeString(undefined, {
|
||||
hour12: false,
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
});
|
||||
} else if (timeRange <= 60 * 60 * 1000) {
|
||||
return date.toLocaleTimeString(undefined, {
|
||||
hour12: false,
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
});
|
||||
} else if (timeRange <= 24 * 60 * 60 * 1000) {
|
||||
return date.toLocaleTimeString(undefined, {
|
||||
hour12: false,
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
electron
|
||||
];
|
||||
|
||||
ELECTON_SKIP_BINARY_DOWNLOAD = 1;
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
|
||||
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ in {
|
||||
# - CONS: Vulnerable to Spectre, Meltdown, Foreshadow, ZombieLoad, etc.
|
||||
# Should ONLY be used in completely trusted environments
|
||||
# - Improves performance by 7-43%
|
||||
"mitigation=off"
|
||||
"mitigations=off"
|
||||
"intel_pstate=performance" # Intel CPU-specific performance mode (if applicable)
|
||||
|
||||
# Memory Management
|
||||
|
||||
@@ -30,9 +30,6 @@ docker run --rm \
|
||||
--workdir /workspace \
|
||||
nixos/nix:latest \
|
||||
sh -c "
|
||||
whoami
|
||||
ls -lh
|
||||
cd /workspace
|
||||
echo 'Enabling flakes and nix-command...'
|
||||
mkdir -p ~/.config/nix
|
||||
echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf
|
||||
|
||||
Reference in new issue
Block a user